[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
|
...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,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue