Skip to content

Commit

Permalink
Persist series details modal state in the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKniephoff committed Nov 14, 2024
1 parent 0c0df2e commit aaf4f99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const groupsPersistConfig = { key: "groups", storage, whitelist: ["columns"] }
const aclsPersistConfig = { key: "acls", storage, whitelist: ["columns"] }
const themesPersistConfig = { key: "themes", storage, whitelist: ["columns"] }
const eventDetailsPersistConfig = { key: "eventDetails", storage: urlStorage, whitelist: ["modal"]}
const seriesDetailsPersistConfig = { key: "seriesDetails", storage: urlStorage, whitelist: ["modal"]}

// form reducer and all other reducers used in this app
const reducers = combineReducers({
Expand All @@ -70,6 +71,7 @@ const reducers = combineReducers({
eventDetails: persistReducer(eventDetailsPersistConfig, eventDetails),
themeDetails,
seriesDetails,
seriesDetails: persistReducer(seriesDetailsPersistConfig, seriesDetails),

Check failure on line 74 in src/store.ts

View workflow job for this annotation

GitHub Actions / build

An object literal cannot have multiple properties with the same name.
recordingDetails,
userDetails,
groupDetails,
Expand Down

0 comments on commit aaf4f99

Please sign in to comment.