@salesforcedevs/dw-components 1.3.148-canary.10 → 1.3.148-canary.12

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.12",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -181,10 +181,6 @@ export default class J2sCardSequence extends LightningElement {
181
181
  }
182
182
 
183
183
  renderedCallback() {
184
- if (this.isLoading) {
185
- return;
186
- }
187
-
188
184
  if (!this._didRenderStaticInnerHtml) {
189
185
  this.updateStaticInnerHtml();
190
186
  this._didRenderStaticInnerHtml = true;
@@ -246,11 +242,12 @@ export default class J2sCardSequence extends LightningElement {
246
242
 
247
243
  if (res.ok) {
248
244
  const resData = await res.json();
249
- if (resData.status === "success") {
245
+ const resOutput = resData.handlePostRequestOutput || resData;
246
+ if (resOutput?.status === "success") {
250
247
  this.jumpToStepIndex(2);
251
248
  } else {
252
249
  throw new Error(
253
- `Form submission failed. (status: ${resData.status}, message: ${resData.errorMessage})`
250
+ `Form submission failed. (status: ${resOutput.status}, message: ${resOutput.errorMessage})`
254
251
  );
255
252
  }
256
253
  }