Commit 156565d Adriána Kohanová
committed
1 parent 4631505 commit 156565d Copy full SHA for 156565d
File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -82,18 +82,10 @@ import {
82
82
} from '../../components/datasets/redux/actions' ;
83
83
84
84
export const saveCurrentActionsList = ( snapshotID , projectID ) => ( dispatch , getState ) => {
85
- const state = getState ( ) ;
86
-
87
- let actionList = state . trackingReducers . track_actions_list ;
88
-
89
- if ( ! actionList || actionList . length === 0 ) {
90
- Promise . resolve ( dispatch ( getTrackingActions ( projectID ) ) ) . then ( response => {
91
- actionList = response ;
92
- dispatch ( saveActionsList ( snapshotID , actionList ) ) ;
93
- } ) ;
94
- } else {
85
+ Promise . resolve ( dispatch ( getTrackingActions ( projectID ) ) ) . then ( response => {
86
+ let actionList = response ;
95
87
dispatch ( saveActionsList ( snapshotID , actionList ) ) ;
96
- }
88
+ } ) ;
97
89
} ;
98
90
99
91
export const saveActionsList = ( snapshotID , actionList ) => ( dispatch , getState ) => {
You can’t perform that action at this time.
0 commit comments