project-booster-vue 9.2.3 → 9.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -368,7 +368,7 @@ export default defineComponent({
|
|
|
368
368
|
|
|
369
369
|
state.value.stepsToResume = requestedStep.stepsToResume!;
|
|
370
370
|
|
|
371
|
-
state.value.currentStep =
|
|
371
|
+
state.value.currentStep = requestedStep?.step;
|
|
372
372
|
|
|
373
373
|
animateDisplayedStep(stepIndex < state.value.history.stepIndex);
|
|
374
374
|
state.value.history.stepIndex = stepIndex;
|
|
@@ -429,7 +429,7 @@ export default defineComponent({
|
|
|
429
429
|
};
|
|
430
430
|
const trackProgress = (originIndex: number, steps: ScenarioHistoryItem[]) => {
|
|
431
431
|
let currentPosition = 1;
|
|
432
|
-
for (let index = originIndex; index
|
|
432
|
+
for (let index = Math.max(originIndex, 0); index >= 0; index--) {
|
|
433
433
|
if (steps[index]?.step?.type === 'SCENARIO') {
|
|
434
434
|
break;
|
|
435
435
|
}
|
|
@@ -620,7 +620,9 @@ export default defineComponent({
|
|
|
620
620
|
},
|
|
621
621
|
);
|
|
622
622
|
|
|
623
|
-
|
|
623
|
+
if (!props.previousState) {
|
|
624
|
+
initScenario('__START__');
|
|
625
|
+
}
|
|
624
626
|
onMounted(() => {
|
|
625
627
|
document.getElementsByTagName('body')[0].style.setProperty('overflow-x', 'hidden');
|
|
626
628
|
});
|