[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 ...rest
} = record } = record
return { return {
...rest,
selectedShapeIds: selectedIds, selectedShapeIds: selectedIds,
hintingShapeIds: hintingIds, hintingShapeIds: hintingIds,
erasingShapeIds: erasingIds, erasingShapeIds: erasingIds,
@ -161,7 +162,6 @@ export const instancePageStateMigrations = defineMigrations({
editingShapeId: editingId, editingShapeId: editingId,
croppingShapeId: croppingId, croppingShapeId: croppingId,
focusedGroupId: focusLayerId, focusedGroupId: focusLayerId,
...rest,
} }
}, },
down: (record) => { down: (record) => {
@ -176,6 +176,7 @@ export const instancePageStateMigrations = defineMigrations({
...rest ...rest
} = record } = record
return { return {
...rest,
selectedIds: selectedShapeIds, selectedIds: selectedShapeIds,
hintingIds: hintingShapeIds, hintingIds: hintingShapeIds,
erasingIds: erasingShapeIds, erasingIds: erasingShapeIds,
@ -183,7 +184,6 @@ export const instancePageStateMigrations = defineMigrations({
editingId: editingShapeId, editingId: editingShapeId,
croppingId: croppingShapeId, croppingId: croppingShapeId,
focusLayerId: focusedGroupId, focusLayerId: focusedGroupId,
...rest,
} }
}, },
}, },