Commit 1db39e89 by Archer Committed by GitHub

4.9.1 fix dataset (#4279) (#4280)

* fix dataset search node reference save

* rewrite

---------

Co-authored-by: heheer <1239331448@qq.com>
parent 7f13eb46
......@@ -131,6 +131,10 @@ export async function rewriteAppWorkflowToSimple(formatNodes: StoreNodeItemType[
if (!val) {
input.value = [];
} else if (Array.isArray(val)) {
// Not rewrite reference value
if (val.length === 2 && val.every((item) => typeof item === 'string')) {
return;
}
input.value = val
.map((dataset: { datasetId: string }) => ({
datasetId: dataset.datasetId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment