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
|
@@ -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:
|
|
172
|
+
nextStep: selectedNextStep,
|
|
164
173
|
});
|
|
165
174
|
};
|
|
166
175
|
|