use commitToHistory prop for handling draw history (#1595)

This commit is contained in:
David Luzar
2020-05-14 14:51:33 +02:00
committed by GitHub
parent d9b8dcfbb4
commit 828c9c4d65
2 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,7 @@ export const actionFinalize = register({
}
: appState.selectedElementIds,
},
commitToHistory: false,
commitToHistory: appState.elementType === "draw",
};
},
keyTest: (event, appState) =>