Skip to content

Commit

Permalink
Remove persist of the whole regulation state
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Jan 20, 2025
1 parent 03dee51 commit 1c40955
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const persistedBackofficeReducerConfig: PersistConfig<typeof backofficeReducer>
stateReconciler: autoMergeLevel2,
storage,
transforms: [SetRegulationStateTransform],
whitelist: ['regulation']
whitelist: []
}
const persistedBackofficeReducer = persistReducer(
persistedBackofficeReducerConfig,
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/store/reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { priorNotificationReducer, type PriorNotificationState } from '@features
import { backofficePriorNotificationReducer } from '@features/PriorNotification/slice.backoffice'
import { backofficeProducerOrganizationMembershipReducer } from '@features/ProducerOrganizationMembership/slice.backoffice'
import { regulatoryLayerSearchReducer } from '@features/Regulation/components/RegulationSearch/slice'
import { regulationReducer } from '@features/Regulation/slice'
import { regulationReducer, type RegulationState } from '@features/Regulation/slice'
import { reportingTableFiltersReducer } from '@features/Reporting/components/ReportingTable/Filters/slice'
import { reportingReducer } from '@features/Reporting/slice'
import { sideWindowReducer } from '@features/SideWindow/slice'
Expand Down Expand Up @@ -63,7 +63,10 @@ const commonReducerList = {
gear: gearReducer,
global: globalSliceReducer,
map: mapReducer,
regulation: regulationReducer,
regulation: persistReducerTyped(
{ ...getCommonPersistReducerConfig<RegulationState>('backofficePersistorRegulation', ['processingRegulation']) },
regulationReducer
),
species: speciesReducer
}

Expand Down

0 comments on commit 1c40955

Please sign in to comment.