mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Rewrite restore to guard against missing migrations (#1664)
This commit is contained in:
parent
56f8bc092d
commit
44a88d2d58
5 changed files with 131 additions and 117 deletions
|
@ -16,7 +16,7 @@ import {
|
|||
getCommonBounds,
|
||||
getCursorForResizingElement,
|
||||
getPerfectElementSize,
|
||||
normalizeDimensions,
|
||||
getNormalizedDimensions,
|
||||
getElementMap,
|
||||
getDrawingVersion,
|
||||
getSyncableElements,
|
||||
|
@ -2527,7 +2527,12 @@ class App extends React.Component<any, AppState> {
|
|||
return;
|
||||
}
|
||||
|
||||
normalizeDimensions(draggingElement);
|
||||
if (draggingElement) {
|
||||
mutateElement(
|
||||
draggingElement,
|
||||
getNormalizedDimensions(draggingElement),
|
||||
);
|
||||
}
|
||||
|
||||
if (resizingElement) {
|
||||
history.resumeRecording();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue