@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.3.148-canary.10",
3
+ "version": "1.3.148-canary.11",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -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
- if (resData.status === "success") {
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: ${resData.status}, message: ${resData.errorMessage})`
254
+ `Form submission failed. (status: ${resOutput.status}, message: ${resOutput.errorMessage})`
254
255
  );
255
256
  }
256
257
  }