From 3ac5306ff994fe6615d19b9c93a2549fd5a1421e Mon Sep 17 00:00:00 2001 From: Philip Abbet <philip.abbet@idiap.ch> Date: Mon, 6 Mar 2017 14:40:14 +0100 Subject: [PATCH] [toolchains] Fix an error when right-clicking on the toolchain editor --- beat/web/toolchains/static/toolchains/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beat/web/toolchains/static/toolchains/js/editor.js b/beat/web/toolchains/static/toolchains/js/editor.js index 91af32e04..2a90b5c39 100644 --- a/beat/web/toolchains/static/toolchains/js/editor.js +++ b/beat/web/toolchains/static/toolchains/js/editor.js @@ -2659,7 +2659,7 @@ beat.toolchains.editor.ToolchainView.prototype._onMouseDown = function(event) var infos = this._getComponentAt(this.mouse_position.x, this.mouse_position.y); // On a connection: Display the channel selection dialog - if (infos.component instanceof beat.toolchains.common.ConnectionRepresentation) + if ((infos != null) && (infos.component instanceof beat.toolchains.common.ConnectionRepresentation)) { var entries = []; var valid_channels = infos.component.connection.output.block.inputs.map(function(x) { return x.channel; }).unique() -- GitLab