update data restore to keep fractional index
This commit is contained in:
parent
de32256466
commit
5c1787bdf4
@ -43,7 +43,7 @@ import {
|
||||
measureBaseline,
|
||||
} from "../element/textElement";
|
||||
import { normalizeLink } from "./url";
|
||||
import { generateConsistentFractionalIndex } from "../fractionalIndex";
|
||||
import { normalizeFractionalIndexing } from "../zindex";
|
||||
|
||||
type RestoredAppState = Omit<
|
||||
AppState,
|
||||
@ -583,7 +583,7 @@ export const restore = (
|
||||
elementsConfig?: { refreshDimensions?: boolean; repairBindings?: boolean },
|
||||
): RestoredDataState => {
|
||||
return {
|
||||
elements: generateConsistentFractionalIndex(
|
||||
elements: normalizeFractionalIndexing(
|
||||
restoreElements(data?.elements, localElements, elementsConfig),
|
||||
),
|
||||
appState: restoreAppState(data?.appState, localAppState || null),
|
||||
|
Loading…
x
Reference in New Issue
Block a user