Skip to content

Commit 2718dce

Browse files
Mahdi Ait Lhaj LoutfiMahdi Ait Lhaj Loutfi
authored andcommitted
just a minor preventive fix
1 parent 48864a4 commit 2718dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderer/components/workspace/NewMedDataObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class MEDDataObject {
5353
*/
5454
static getChildIDWithName(dict, parentID, name) {
5555
for (const childID of dict[parentID].childrenIDs) {
56-
if (dict[childID].name == name) {
56+
if (dict[childID] && dict[childID].name == name) {
5757
return childID
5858
}
5959
}

0 commit comments

Comments
 (0)