project-booster-vue 10.22.0 → 10.22.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.22.0",
3
+ "version": "10.22.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -153,6 +153,15 @@ const submitAnswers = ({ nextStep }: { nextStep: any }) => {
153
153
  });
154
154
  }
155
155
 
156
+ let selectedNextStep;
157
+ if (props.payload?.multiSelect) {
158
+ selectedNextStep = props.payload.multiSelect.actions.VALIDATE.nextStep;
159
+ } else if (props.payload?.answers[answersToSubmit[0].value]?.nextStep) {
160
+ selectedNextStep = props.payload.answers[answersToSubmit[0].value].nextStep;
161
+ } else {
162
+ selectedNextStep = nextStep;
163
+ }
164
+
156
165
  /**
157
166
  * Emitted when step is completed
158
167
  * @event dynamic event name according to completedEventName prop
@@ -160,7 +169,7 @@ const submitAnswers = ({ nextStep }: { nextStep: any }) => {
160
169
  */
161
170
  emit(props.completedEventName, {
162
171
  answers: answersToSubmit,
163
- nextStep: nextStep,
172
+ nextStep: selectedNextStep,
164
173
  });
165
174
  };
166
175