mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: clear file store when navigating between tools
Changed undoProcessing() to reset() on toolId change so files don't persist when navigating from one tool to another. Previously a video file from a video tool would carry over to an image tool.
This commit is contained in:
@@ -333,7 +333,7 @@ export function ToolPage() {
|
||||
|
||||
// biome-ignore lint/correctness/useExhaustiveDependencies: toolId triggers intentional reset on tool navigation
|
||||
useEffect(() => {
|
||||
useFileStore.getState().undoProcessing();
|
||||
useFileStore.getState().reset();
|
||||
|
||||
useBase64Store.getState().reset();
|
||||
useCollageStore.getState().reset();
|
||||
|
||||
Reference in New Issue
Block a user