We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0aacdc + 8aaadf2 commit 2ebb112Copy full SHA for 2ebb112
src/virtual-machine.js
@@ -336,7 +336,7 @@ VirtualMachine.prototype.emitWorkspaceUpdate = function () {
336
*/
337
VirtualMachine.prototype.getTargetIdForDrawableId = function (drawableId) {
338
var target = this.runtime.getTargetByDrawableId(drawableId);
339
- if (target.hasOwnProperty('id') && target.hasOwnProperty('isStage') && !target.isStage) {
+ if (target && target.hasOwnProperty('id') && target.hasOwnProperty('isStage') && !target.isStage) {
340
return target.id;
341
}
342
return null;
0 commit comments