fix flow operations staged edits (#15662)

This commit is contained in:
Azri Kahar
2022-10-15 11:02:57 +08:00
committed by GitHub
parent d0ff4e7922
commit 9ee740e2c5

View File

@@ -404,7 +404,7 @@ function stageOperationEdits(event: { edits: Partial<OperationRaw>; id?: string
if (stagedPanels.value.some((panel) => panel.id === key)) {
stagedPanels.value = stagedPanels.value.map((panel) => {
if (panel.id === key) {
return merge({ id: key, flow: props.primaryKey }, panel, event.edits);
return Object.assign({ id: key, flow: props.primaryKey }, panel, event.edits);
}
return panel;