Skip to content

Commit a3e3fb1

Browse files
committed
feat: Update StepFlow component to ensure unique IDs for value dimensions, enhancing data integrity in AI-generated processes
1 parent 4fa6eec commit a3e3fb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/renderer/src/components/pages/crosstab/StepFlow.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ export default function StepFlow({ chat, userInput, onStepComplete, getLLMConfig
222222
dim.id = uuidv4()
223223
dim.values = []
224224
}
225+
for (const dim of metadata.valueDimensions) {
226+
dim.id = uuidv4()
227+
}
225228

226229
onStepComplete(stepIndex, { metadata })
227230
} catch (error) {

0 commit comments

Comments
 (0)