feat: add element.updated
(#4070)
This commit is contained in:
@ -26,6 +26,7 @@ import {
|
||||
import { getDefaultAppState } from "../appState";
|
||||
import { LinearElementEditor } from "../element/linearElementEditor";
|
||||
import { bumpVersion } from "../element/mutateElement";
|
||||
import { getUpdatedTimestamp } from "../utils";
|
||||
|
||||
type RestoredAppState = Omit<
|
||||
AppState,
|
||||
@ -101,6 +102,7 @@ const restoreElementWithProperties = <
|
||||
element.strokeSharpness ??
|
||||
(isLinearElementType(element.type) ? "round" : "sharp"),
|
||||
boundElementIds: element.boundElementIds ?? [],
|
||||
updated: element.updated ?? getUpdatedTimestamp(),
|
||||
};
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user