remove unnecessary property

This commit is contained in:
Ryan Di 2025-04-03 17:33:52 +11:00
parent 64aeb0fe56
commit ca8f6e0ab1
2 changed files with 0 additions and 5 deletions

View file

@ -117,12 +117,9 @@ const getRelevantAppStateProps = (
editingGroupId: appState.editingGroupId,
currentHoveredFontFamily: appState.currentHoveredFontFamily,
croppingElementId: appState.croppingElementId,
activeTool: appState.activeTool,
};
if (appState.activeTool.type === "lasso") {
delete (relevantAppStateProps as Partial<typeof relevantAppStateProps>)
.activeTool;
delete (relevantAppStateProps as Partial<typeof relevantAppStateProps>)
.selectedElementIds;
}

View file

@ -203,8 +203,6 @@ export type StaticCanvasAppState = Readonly<
hoveredElementIds: AppState["hoveredElementIds"];
// Cropping
croppingElementId: AppState["croppingElementId"];
// For reducing unnecessary re-renders
activeTool: AppState["activeTool"];
}
>;