Skip to content

Commit 58bf1ba

Browse files
committed
fix: change Modify the destructuring syntax
1 parent 47f51a1 commit 58bf1ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/app/pages/ChartWorkbenchPage/slice/workbenchSlice.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ const workbenchSlice = createSlice({
469469

470470
if (index !== undefined) {
471471
state.currentDataView = {
472-
...{ ...payload, config: migrateViewConfig(payload.config) },
472+
...payload,
473+
config: migrateViewConfig(payload.config),
473474
meta: transformMeta(payload.model),
474475
computedFields,
475476
};

0 commit comments

Comments
 (0)