mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +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) {
|
if (!val) {
|
||||||
input.value = [];
|
input.value = [];
|
||||||
} else if (Array.isArray(val)) {
|
} else if (Array.isArray(val)) {
|
||||||
|
// Not rewrite reference value
|
||||||
|
if (val.length === 2 && val.every((item) => typeof item === 'string')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
input.value = val
|
input.value = val
|
||||||
.map((dataset: { datasetId: string }) => ({
|
.map((dataset: { datasetId: string }) => ({
|
||||||
datasetId: dataset.datasetId
|
datasetId: dataset.datasetId
|
||||||
|
Reference in New Issue
Block a user