From 33e20c9969e90af6b48ca49587743c7f876f53e4 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 28 May 2019 21:43:21 +0100 Subject: [PATCH] Only add copypath popover if button exists. --- .../node_modules/@node-red/editor-client/src/js/ui/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js b/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js index 9613b2564..a7b022172 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js @@ -125,8 +125,8 @@ RED.utils = (function() { e.stopPropagation(); RED.clipboard.copyText(key,copyPath,"clipboard.copyMessagePath"); }) + RED.popover.tooltip(copyPath,RED._("node-red:debug.sidebar.copyPath")); } - RED.popover.tooltip(copyPath,RED._("node-red:debug.sidebar.copyPath")); var copyPayload = $('').appendTo(copyTools).on("click", function(e) { e.preventDefault(); e.stopPropagation();