X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Flibraries%2Fmodel%2FDescriptorModel.js;h=1a2ba4f04bb4d720c3e7a8588fe0184e73509d6c;hp=02bbfcd3297f5399766b9fb9009b1400b878f5b4;hb=c02d242125c45704991405449fbeb35de8c9687c;hpb=cf5edafaf6923b748a229cbd3f2422da255f5806 diff --git a/skyquake/plugins/composer/src/src/libraries/model/DescriptorModel.js b/skyquake/plugins/composer/src/src/libraries/model/DescriptorModel.js index 02bbfcd32..1a2ba4f04 100644 --- a/skyquake/plugins/composer/src/src/libraries/model/DescriptorModel.js +++ b/skyquake/plugins/composer/src/src/libraries/model/DescriptorModel.js @@ -182,7 +182,10 @@ export default class DescriptorModel { throw new ReferenceError('child must be an instance of DescriptorModel class'); } if (this.findChildByUid(child.uid)) { - throw new ReferenceError('child already exists'); + console.warn('Child already exists'); + // NOTE: Commented out this line because it was causing issues with Internal VLD. + // TODO: Check why it caused issues with Internal VLD + // throw new ReferenceError('child already exists'); } if (child.parent instanceof DescriptorModel) { throw new ReferenceError('child already has a parent');