Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jemoka committed Sep 10, 2024
1 parent 640dc7d commit 4158433
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export const browseSlice = createSlice({
.addMatcher(
(action) => (action.type == "global/reindex"),
(state, action) => {
action.asyncDispatch(query(unroll(state.searches[state.current])));
if (state.searches[state.current]) {
action.asyncDispatch(query(unroll(state.searches[state.current])));
}
}
);
},
Expand Down

0 comments on commit 4158433

Please sign in to comment.