fix credential type input item of subflow template

This commit is contained in:
Hiroyasu Nishiyama 2022-06-23 16:52:43 +09:00
parent 1f5588b803
commit 4bd71da056
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ RED.editor.envVarList = (function() {
}
opt.ui.label = opt.ui.label || {};
opt.ui.type = opt.ui.type || "input";
if ((opt.ui.type === "cred") &&
opt.ui.opts &&
opt.ui.opts.types) {
opt.ui.type = "input";
}
var uiRow = $('<div/>').appendTo(container).hide();
// save current info for reverting on cancel