Skip to content

Commit

Permalink
#520 After saving snapshot wrong snapshot is selected in project history
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriána Kohanová committed Feb 2, 2021
1 parent bef6400 commit f23b8e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/components/snapshot/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
setSharedSnapshot,
setSnapshotJustSaved
} from './actions';
import { setDialogCurrentStep } from '../../snapshot/redux/actions';
import { DJANGO_CONTEXT } from '../../../utils/djangoContext';
import {
assignSnapshotToProject,
Expand Down Expand Up @@ -306,6 +307,7 @@ export const createNewSnapshot = ({
dispatch(setOpenSnapshotSavingDialog(false));
dispatch(setIsLoadingSnapshotDialog(false));
dispatch(setSnapshotJustSaved(projectResponse.data.id));
dispatch(setDialogCurrentStep());
}
})
.catch(error => {
Expand Down

0 comments on commit f23b8e1

Please sign in to comment.