|
|
@ -13,12 +13,10 @@ const writeData = (
|
|
|
|
updater: () => { elements: ExcalidrawElement[]; appState: AppState } | null,
|
|
|
|
updater: () => { elements: ExcalidrawElement[]; appState: AppState } | null,
|
|
|
|
) => {
|
|
|
|
) => {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
[
|
|
|
|
!appState.multiElement &&
|
|
|
|
appState.multiElement,
|
|
|
|
!appState.resizingElement &&
|
|
|
|
appState.resizingElement,
|
|
|
|
!appState.editingElement &&
|
|
|
|
appState.editingElement,
|
|
|
|
!appState.draggingElement
|
|
|
|
appState.draggingElement,
|
|
|
|
|
|
|
|
].some(Boolean)
|
|
|
|
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
const data = updater();
|
|
|
|
const data = updater();
|
|
|
|
|
|
|
|
|
|
|
|