Skip to content

Commit

Permalink
Fix coverage crashing the page, if genre is not setup present (superd…
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc authored Jul 23, 2024
1 parent 9c9a101 commit 839798d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import contacts from './contacts';
import locations from './locations';

const returnState = (state) => state || {};
const returnGenreState = (state) => state ?? [];

const planningApp = combineReducers({
modal: modal,
Expand All @@ -45,7 +46,7 @@ const planningApp = combineReducers({
ingest: returnState,
privileges: returnState,
subjects: returnState,
genres: returnState,
genres: returnGenreState,
users: returnState,
desks: returnState,
urgency: returnState,
Expand Down

0 comments on commit 839798d

Please sign in to comment.