Fix data inputs becoming runtime inputs when cloning step

This commit is contained in:
mvdbeek
2021-03-12 17:50:52 +01:00
parent eeaf3467e6
commit 526fb05d5c
@@ -108,7 +108,7 @@ export class ToolForm {
const inputs = node.config_form.inputs;
Utils.deepeach(inputs, (input) => {
if (input.type) {
if (["data", "data_collection"].indexOf(input.type) != -1) {
if (["data", "data_collection", "hidden"].indexOf(input.type) != -1) {
input.type = "hidden";
input.info = `Data input '${input.name}' (${Utils.textify(input.extensions)})`;
input.value = { __class__: "RuntimeValue" };