[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:
Steve Ruiz 2023-10-09 09:20:55 +01:00 committed by GitHub
parent a5d9012934
commit 550b88be8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}
},
},