mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-25 18:31:15 +02:00
fix specs
This commit is contained in:
@@ -151,7 +151,6 @@ export const actionFinalize = register({
|
||||
} else {
|
||||
activeTool.type = "selection";
|
||||
}
|
||||
|
||||
return {
|
||||
elements: newElements,
|
||||
appState: {
|
||||
@@ -162,10 +161,7 @@ export const actionFinalize = register({
|
||||
appState.activeTool.type === "freedraw") &&
|
||||
multiPointElement
|
||||
? appState.activeTool
|
||||
: {
|
||||
...appState.activeTool,
|
||||
activeTool,
|
||||
},
|
||||
: activeTool,
|
||||
draggingElement: null,
|
||||
multiElement: null,
|
||||
editingElement: null,
|
||||
|
@@ -263,6 +263,7 @@ export const restoreAppState = (
|
||||
const activeTool: any = {
|
||||
lastActiveToolBeforeEraser: null,
|
||||
locked: nextAppState.activeTool.locked ?? false,
|
||||
type: "selection",
|
||||
};
|
||||
if (AllowedExcalidrawActiveTools[nextAppState.activeTool.type]) {
|
||||
if (nextAppState.activeTool.type === "custom") {
|
||||
|
Reference in New Issue
Block a user