Skip to content

Commit 4342d17

Browse files
committed
#777 frontend: Added removeAllLeagues to graphinputstore
1 parent cab0256 commit 4342d17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/frontend/src/store/GraphInputStore.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ export const useGraphInputStore = create<GraphInputState>((set) => ({
186186
[] as string[])
187187
]
188188
})),
189+
removeAllLeagues: () =>
190+
set(() => ({
191+
leagues: []
192+
})),
189193

190194
setItemSpec: (itemSpec: ItemSpecState) => set(() => ({ itemSpec: itemSpec })),
191195

0 commit comments

Comments
 (0)