projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "RIFT-16172: Project switch does not affect polling and socket pages." into...
[osm/UI.git]
/
skyquake
/
plugins
/
composer
/
src
/
src
/
libraries
/
model
/
DescriptorModel.js
diff --git
a/skyquake/plugins/composer/src/src/libraries/model/DescriptorModel.js
b/skyquake/plugins/composer/src/src/libraries/model/DescriptorModel.js
index
02bbfcd
..
1a2ba4f
100644
(file)
--- 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 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');
}
if (child.parent instanceof DescriptorModel) {
throw new ReferenceError('child already has a parent');