Skip to content

Commit 533ba8c

Browse files
Merge remote-tracking branch 'remotes/origin/#511' into allfunctionality
2 parents 60cda62 + c7bd5a3 commit 533ba8c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

js/components/preview/redux/dispatchActions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ export const unmountPreviewComponent = (stages = []) => dispatch => {
121121
}
122122
});
123123

124+
dispatch(resetTrackingState());
125+
124126
dispatch(resetCurrentCompoundsSettings(true));
125127
dispatch(resetProjectsReducer());
126128

127129
dispatch(resetSelectionState());
128130
dispatch(resetDatasetsState());
129-
130-
dispatch(resetTrackingState());
131131
};
132132

133133
export const resetReducersForRestoringActions = () => dispatch => {

js/components/projects/redux/dispatchActions.js

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import { createInitSnapshotFromCopy, getListOfSnapshots } from '../../snapshot/r
2020
import { SnapshotType } from './constants';
2121
import { DJANGO_CONTEXT } from '../../../utils/djangoContext';
2222
import { sendInitTrackingActionByProjectId } from '../../../reducers/tracking/dispatchActions';
23+
import { resetTrackingState } from '../../../reducers/tracking/actions';
24+
2325
import moment from 'moment';
2426

2527
export const assignSnapshotToProject = ({ projectID, snapshotID, ...rest }) => (dispatch, getState) => {
@@ -320,6 +322,7 @@ export const createProjectFromSnapshot = ({ title, description, author, tags, hi
320322
const snapshotData = JSON.parse(selectedSnapshot && selectedSnapshot.data);
321323

322324
dispatch(setProjectModalIsLoading(true));
325+
dispatch(resetTrackingState());
323326
return dispatch(
324327
createProject({
325328
title,
@@ -365,6 +368,7 @@ export const createProjectFromScratch = ({ title, description, target, author, t
365368
getState
366369
) => {
367370
dispatch(setProjectModalIsLoading(true));
371+
dispatch(resetTrackingState());
368372
return api({
369373
url: `${base_url}/api/session-projects/`,
370374
method: METHOD.POST,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fragalysis-frontend",
3-
"version": "0.9.52",
3+
"version": "0.9.53",
44
"description": "Frontend for fragalysis",
55
"main": "webpack.config.js",
66
"scripts": {

0 commit comments

Comments
 (0)