From 50fde74933ac2fd3683ca8b5c6f73d483f520acf Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 22 Apr 2020 15:56:31 +0200 Subject: [PATCH] widget: resolve prop avoid error --- src/client/widgets/common/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index e58c4437..acce46a1 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -535,7 +535,7 @@ class Widget extends EventEmitter { // ignore clone wrapper in @parent stack (https://github.com/jean-emmanuel/open-stage-control/issues/379) - if (widgets[0] === this.parent && this.parent.getProp('type') === 'clone') widgets = [this.parent.parent] + if (widgets[0] === this.parent && this.parent !== widgetManager && this.parent.getProp('type') === 'clone') widgets = [this.parent.parent] if (storeLinks) {