Skip to content

Commit

Permalink
fix: saveAndNav regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafikart committed Aug 30, 2024
1 parent e4fa616 commit 6586b40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/service/navigation-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ const saveAndNav = (
routeNotSelection?: string,
currentIteration?: number,
): void => {
console.log("should save", idSurvey, { ...getData(idSurvey), ..._callbackHolder.getData() });
navToRouteOrRouteNotSelection(idSurvey, route, value, routeNotSelection, currentIteration);
saveData(idSurvey, { ...getData(idSurvey), ..._callbackHolder.getData() }).then(() => {
navToRouteOrRouteNotSelection(idSurvey, route, value, routeNotSelection, currentIteration);
});
/*
saveData(idSurvey, , {...Data(idSurvey), ..._callbackHolder.getData()})then(() => {
navToRouteOrRouteNotSelection(idSurvey, route, value, routeNotSelection, currentIteration);
Expand Down

0 comments on commit 6586b40

Please sign in to comment.