Skip to content

Commit

Permalink
feat: support expression in variable name in the Insert Data block (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Dec 22, 2023
1 parent 8aaabfc commit 8996408
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/workflowEngine/blocksHandler/handlerInsertData.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ async function insertData({ id, data }, { refData }) {
this.addDataToColumn(item.name, tableValue);
});
} else {
await this.setVariable(item.name, value);
const variableName = await renderString(
item.name,
refData,
this.engine.isPopup
);
await this.setVariable(variableName.value, value);
}
}

Expand Down

0 comments on commit 8996408

Please sign in to comment.