mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
* fix dataset search node reference save * rewrite --------- Co-authored-by: heheer <1239331448@qq.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user