* fix dataset search node reference save * rewrite --------- Co-authored-by: heheer <1239331448@qq.com>
This commit is contained in:
parent
7f13eb4642
commit
1db39e8907
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user