@salesforcedevs/dw-components 1.3.148-canary.10 → 1.3.148-canary.11
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
|
@@ -246,11 +246,12 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
246
246
|
|
|
247
247
|
if (res.ok) {
|
|
248
248
|
const resData = await res.json();
|
|
249
|
-
|
|
249
|
+
const resOutput = resData.handlePostRequestOutput || resData;
|
|
250
|
+
if (resOutput?.status === "success") {
|
|
250
251
|
this.jumpToStepIndex(2);
|
|
251
252
|
} else {
|
|
252
253
|
throw new Error(
|
|
253
|
-
`Form submission failed. (status: ${
|
|
254
|
+
`Form submission failed. (status: ${resOutput.status}, message: ${resOutput.errorMessage})`
|
|
254
255
|
);
|
|
255
256
|
}
|
|
256
257
|
}
|