Skip to content

Commit

Permalink
Tech - Suppression du stockage des couches REG dans le backoffice (#4028
Browse files Browse the repository at this point in the history
)

## Linked issues

- Le sotckage dans le `localstorage` ne permettait pas d'avoir la vue à
date des dernières modifications.

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
louptheron authored Jan 20, 2025
2 parents 3c2a80b + 1c40955 commit 5e660ac
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 5e660ac

Please sign in to comment.