File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ import onboardingReducer from 'src/stores/onboarding-slice';
1818import providerConstantsReducer , {
1919 setProviderConstants ,
2020} from 'src/stores/provider-constants-slice' ;
21- import { reducer as snapshotReducer , updateSnapshotLocally } from 'src/stores/snapshot-slice' ;
21+ import {
22+ reducer as snapshotReducer ,
23+ updateSnapshotLocally ,
24+ snapshotActions ,
25+ } from 'src/stores/snapshot-slice' ;
2226import { syncReducer } from 'src/stores/sync' ;
2327import {
2428 connectedSitesReducer ,
@@ -77,7 +81,7 @@ listenerMiddleware.startListening( {
7781
7882// Save snapshots to user config
7983listenerMiddleware . startListening ( {
80- matcher : isAnyOf ( updateSnapshotLocally ) ,
84+ matcher : isAnyOf ( updateSnapshotLocally , snapshotActions . deleteSnapshotLocally ) ,
8185 async effect ( action , listenerApi ) {
8286 const state = listenerApi . getState ( ) ;
8387 await getIpcApi ( ) . saveSnapshotsToStorage ( state . snapshot . snapshots ) ;
You can’t perform that action at this time.
0 commit comments