[fix] Page state migration (#2040)
This PR is a follower fix for the page state migration. ### Change Type - [x] `patch` — Bug fix
This commit is contained in:
parent
a5d9012934
commit
550b88be8f
1 changed files with 2 additions and 2 deletions
|
@ -154,6 +154,7 @@ export const instancePageStateMigrations = defineMigrations({
|
|||
...rest
|
||||
} = record
|
||||
return {
|
||||
...rest,
|
||||
selectedShapeIds: selectedIds,
|
||||
hintingShapeIds: hintingIds,
|
||||
erasingShapeIds: erasingIds,
|
||||
|
@ -161,7 +162,6 @@ export const instancePageStateMigrations = defineMigrations({
|
|||
editingShapeId: editingId,
|
||||
croppingShapeId: croppingId,
|
||||
focusedGroupId: focusLayerId,
|
||||
...rest,
|
||||
}
|
||||
},
|
||||
down: (record) => {
|
||||
|
@ -176,6 +176,7 @@ export const instancePageStateMigrations = defineMigrations({
|
|||
...rest
|
||||
} = record
|
||||
return {
|
||||
...rest,
|
||||
selectedIds: selectedShapeIds,
|
||||
hintingIds: hintingShapeIds,
|
||||
erasingIds: erasingShapeIds,
|
||||
|
@ -183,7 +184,6 @@ export const instancePageStateMigrations = defineMigrations({
|
|||
editingId: editingShapeId,
|
||||
croppingId: croppingShapeId,
|
||||
focusLayerId: focusedGroupId,
|
||||
...rest,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue