Rewrite restore to guard against missing migrations (#1664)

This commit is contained in:
David Luzar 2020-05-28 11:41:34 +02:00 committed by GitHub
parent 56f8bc092d
commit 44a88d2d58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 131 additions and 117 deletions

View file

@ -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();