Skip to content

Commit

Permalink
Merge pull request #560 from Arnei/persist-table-pagination
Browse files Browse the repository at this point in the history
Persist table pagination settings
  • Loading branch information
lkiesow committed Jun 4, 2024
2 parents 28424e8 + 1eb9198 commit 1ff5bca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import autoMergeLevel2 from "redux-persist/lib/stateReconciler/autoMergeLevel2";
// Configuration for persisting states in store
const eventsPersistConfig = { key: "events", storage, whitelist: ["columns"] }
const seriesPersistConfig = { key: "series", storage, whitelist: ["columns"] }
const tablePersistConfig = { key: "table", storage, whitelist: ["pagination"] }
const recordingsPersistConfig = { key: "recordings", storage, whitelist: ["columns"] }
const jobsPersistConfig = { key: "jobs", storage, whitelist: ["columns"] }
const serversPersistConfig = { key: "servers", storage, whitelist: ["columns"] }
Expand All @@ -52,7 +53,7 @@ const reducers = combineReducers({
tableFilterProfiles,
events: persistReducer(eventsPersistConfig, events),
series: persistReducer(seriesPersistConfig, series),
table,
table: persistReducer(tablePersistConfig, table),
recordings: persistReducer(recordingsPersistConfig, recordings),
jobs: persistReducer(jobsPersistConfig, jobs),
servers: persistReducer(serversPersistConfig, servers),
Expand Down

0 comments on commit 1ff5bca

Please sign in to comment.