|
7 | 7 | import { createInitAction } from './trackingActions';
|
8 | 8 | import { actionType, actionObjectType, NUM_OF_SECONDS_TO_IGNORE_MERGE } from './constants';
|
9 | 9 | import { VIEWS } from '../../../js/constants/constants';
|
10 |
| -import { setCurrentVector, appendToBuyList, setHideAll, setArrowUpDown } from '../selection/actions'; |
| 10 | +import { setHideAll, setArrowUpDown } from '../selection/actions'; |
11 | 11 | import {
|
12 | 12 | resetReducersForRestoringActions,
|
13 | 13 | shouldLoadProtein,
|
@@ -94,8 +94,7 @@ import {
|
94 | 94 | setIsActionsLoading,
|
95 | 95 | setActionsList,
|
96 | 96 | setSnapshotImageActionList,
|
97 |
| - setUndoRedoActionList, |
98 |
| - setPast |
| 97 | + setUndoRedoActionList |
99 | 98 | } from './actions';
|
100 | 99 | import { api, METHOD } from '../../../js/utils/api';
|
101 | 100 | import { base_url } from '../../components/routes/constants';
|
@@ -726,9 +725,11 @@ export const restoreAfterTargetActions = (stages, projectId) => async (dispatch,
|
726 | 725 |
|
727 | 726 | await dispatch(restoreSitesActions(orderedActionList, summaryView));
|
728 | 727 | await dispatch(loadData(orderedActionList, targetId, majorView));
|
729 |
| - await dispatch(restoreActions(orderedActionList, majorView.stage)); |
| 728 | + await dispatch(restoreMoleculesActions(orderedActionList, majorView.stage)); |
730 | 729 | await dispatch(restoreRepresentationActions(orderedActionList, stages));
|
731 | 730 | await dispatch(restoreProject(projectId));
|
| 731 | + dispatch(restoreCartActions(orderedActionList, majorView.stage)); |
| 732 | + |
732 | 733 | dispatch(restoreSnapshotImageActions(projectId));
|
733 | 734 | dispatch(restoreNglStateAction(orderedActionList, stages));
|
734 | 735 | dispatch(setIsActionsRestoring(false, true));
|
@@ -808,10 +809,6 @@ const restoreNglStateAction = (orderedActionList, stages) => (dispatch, getState
|
808 | 809 | }
|
809 | 810 | };
|
810 | 811 |
|
811 |
| -const restoreActions = (orderedActionList, stage) => (dispatch, getState) => { |
812 |
| - dispatch(restoreMoleculesActions(orderedActionList, stage)); |
813 |
| -}; |
814 |
| - |
815 | 812 | const loadData = (orderedActionList, targetId, majorView) => async (dispatch, getState) => {
|
816 | 813 | await dispatch(loadAllMolecules(orderedActionList, targetId, majorView.stage));
|
817 | 814 | await dispatch(loadAllDatasets(orderedActionList, targetId, majorView.stage));
|
@@ -889,7 +886,6 @@ const restoreMoleculesActions = (orderedActionList, stage) => (dispatch, getStat
|
889 | 886 | dispatch(selectVectorAndResetCompounds(vectorAction.object_name));
|
890 | 887 | }
|
891 | 888 |
|
892 |
| - dispatch(restoreCartActions(moleculesAction, stage)); |
893 | 889 | dispatch(restoreAllSelectionActions(orderedActionList, stage, true));
|
894 | 890 | dispatch(restoreAllSelectionByTypeActions(orderedActionList, stage, true));
|
895 | 891 | dispatch(setIsTrackingMoleculesRestoring(false));
|
|
0 commit comments