mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Guard refresh of unknown subflow
This commit is contained in:
parent
ade4679e8c
commit
5dfa47ab6c
@ -158,8 +158,10 @@ RED.sidebar.help = (function() {
|
|||||||
|
|
||||||
function refreshSubflow(sf) {
|
function refreshSubflow(sf) {
|
||||||
var item = treeList.treeList('get',"node-type:subflow:"+sf.id);
|
var item = treeList.treeList('get',"node-type:subflow:"+sf.id);
|
||||||
item.subflowLabel = sf._def.label().toLowerCase();
|
if (item) {
|
||||||
item.treeList.replaceElement(getNodeLabel({_def:sf._def,type:sf._def.label()}));
|
item.subflowLabel = sf._def.label().toLowerCase();
|
||||||
|
item.treeList.replaceElement(getNodeLabel({_def:sf._def,type:sf._def.label()}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideTOC() {
|
function hideTOC() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user