Skip to content

Commit

Permalink
remove scoping on stored ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Aug 2, 2024
1 parent 5f45a80 commit d17971f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/stores/undoRedoStore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export class ActionOutOfBoundsError extends Error {
}
}

export const useUndoRedoStore = defineScopedStore("undoRedoStore", (scope) => {
export const useUndoRedoStore = defineScopedStore("undoRedoStore", () => {
const undoActionStack = ref<UndoRedoAction[]>([]);
const redoActionStack = ref<UndoRedoAction[]>([]);

const maxUndoActions = useUserLocalStorage(`undoRedoStore-maxUndoActions-${scope}`, 100);
const maxUndoActions = useUserLocalStorage(`undoRedoStore-maxUndoActions`, 100);

/** names of actions which were deleted due to maxUndoActions being exceeded */
const deletedActions = ref<string[]>([]);
Expand Down

0 comments on commit d17971f

Please sign in to comment.