Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/#511' into allfunctionality
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Feb 1, 2021
2 parents 60cda62 + c7bd5a3 commit 533ba8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/components/preview/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ export const unmountPreviewComponent = (stages = []) => dispatch => {
}
});

dispatch(resetTrackingState());

dispatch(resetCurrentCompoundsSettings(true));
dispatch(resetProjectsReducer());

dispatch(resetSelectionState());
dispatch(resetDatasetsState());

dispatch(resetTrackingState());
};

export const resetReducersForRestoringActions = () => dispatch => {
Expand Down
4 changes: 4 additions & 0 deletions js/components/projects/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { createInitSnapshotFromCopy, getListOfSnapshots } from '../../snapshot/r
import { SnapshotType } from './constants';
import { DJANGO_CONTEXT } from '../../../utils/djangoContext';
import { sendInitTrackingActionByProjectId } from '../../../reducers/tracking/dispatchActions';
import { resetTrackingState } from '../../../reducers/tracking/actions';

import moment from 'moment';

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

dispatch(setProjectModalIsLoading(true));
dispatch(resetTrackingState());
return dispatch(
createProject({
title,
Expand Down Expand Up @@ -365,6 +368,7 @@ export const createProjectFromScratch = ({ title, description, target, author, t
getState
) => {
dispatch(setProjectModalIsLoading(true));
dispatch(resetTrackingState());
return api({
url: `${base_url}/api/session-projects/`,
method: METHOD.POST,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fragalysis-frontend",
"version": "0.9.52",
"version": "0.9.53",
"description": "Frontend for fragalysis",
"main": "webpack.config.js",
"scripts": {
Expand Down

0 comments on commit 533ba8c

Please sign in to comment.