diff --git a/src/service/navigation-service.ts b/src/service/navigation-service.ts index 5ead5a37..3daa72fe 100644 --- a/src/service/navigation-service.ts +++ b/src/service/navigation-service.ts @@ -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);