diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js b/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js index 8e444b5ca..db915fd8b 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/palette.js @@ -171,23 +171,15 @@ RED.palette = (function() { } metaData += type; + const safeType = type.replace(/'/g,"\\'"); + const searchType = type.indexOf(' ') > -1 ? '"' + type + '"' : type + if (/^subflow:/.test(type)) { $('').appendTo(popOverContent) } - const safeType = type.replace(/'/g,"\\'"); - const wrapStr = function (str) { - if(str.indexOf(' ') >= 0) { - return '"' + str + '"' - } - return str - } + $('').appendTo(popOverContent) - $('') - .appendTo(popOverContent) - .on('click', function() { - RED.search.show('type:' + wrapStr(safeType)) - }) $('').appendTo(popOverContent) $('
',{style:"font-size: 0.8em"}).text(metaData).appendTo(popOverContent);