mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
remove unnecessary property
This commit is contained in:
parent
64aeb0fe56
commit
ca8f6e0ab1
2 changed files with 0 additions and 5 deletions
|
@ -117,12 +117,9 @@ const getRelevantAppStateProps = (
|
||||||
editingGroupId: appState.editingGroupId,
|
editingGroupId: appState.editingGroupId,
|
||||||
currentHoveredFontFamily: appState.currentHoveredFontFamily,
|
currentHoveredFontFamily: appState.currentHoveredFontFamily,
|
||||||
croppingElementId: appState.croppingElementId,
|
croppingElementId: appState.croppingElementId,
|
||||||
activeTool: appState.activeTool,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (appState.activeTool.type === "lasso") {
|
if (appState.activeTool.type === "lasso") {
|
||||||
delete (relevantAppStateProps as Partial<typeof relevantAppStateProps>)
|
|
||||||
.activeTool;
|
|
||||||
delete (relevantAppStateProps as Partial<typeof relevantAppStateProps>)
|
delete (relevantAppStateProps as Partial<typeof relevantAppStateProps>)
|
||||||
.selectedElementIds;
|
.selectedElementIds;
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,8 +203,6 @@ export type StaticCanvasAppState = Readonly<
|
||||||
hoveredElementIds: AppState["hoveredElementIds"];
|
hoveredElementIds: AppState["hoveredElementIds"];
|
||||||
// Cropping
|
// Cropping
|
||||||
croppingElementId: AppState["croppingElementId"];
|
croppingElementId: AppState["croppingElementId"];
|
||||||
// For reducing unnecessary re-renders
|
|
||||||
activeTool: AppState["activeTool"];
|
|
||||||
}
|
}
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue