Skip to content

Commit

Permalink
PLATINT-2749: Fix some minor bugs during initial setup phase (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmather-c authored Jul 10, 2023
1 parent 4816829 commit 148fa37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion sfdx/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.sfdx/
.sf/
jwt-cert/private_key.pem
jwt-cert/private_key.pem
sfdx.iml
9 changes: 4 additions & 5 deletions sfdx/force-app/main/default/lwc/pollingStep/pollingStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class PollingStep extends LightningElement {
@api showButton = false;
@api showTitle = false;

async connectedCallback() {
@api async connectedCallback() {
await this.initPageStateData();
}

Expand All @@ -107,11 +107,10 @@ export default class PollingStep extends LightningElement {
this.isConfigEnabled = syncPrefs.enabled;

const syncStartDate = syncPrefs.sync_start_date;

if (syncStartDate === "0") {
this.syncStartDate = new Date().toISOString();
} else if (syncStartDate !== null || syncStartDate !== "" || syncStartDate !== undefined) {
if (syncStartDate && syncStartDate !== "0") {
this.syncStartDate = new Date(syncStartDate * 1000).toISOString();
} else {
this.syncStartDate = new Date().toISOString();
}
}

Expand Down
1 change: 1 addition & 0 deletions sfdx/force-app/main/default/lwc/setup/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export default class FirstTimeSetup extends LightningElement {
getmappingconfigurations() {
this.template.querySelector('c-data-mapping-step').getPicklistValuesForMapper(true, '');
this.template.querySelector('c-sync-preferences-step').connectedCallback();
this.template.querySelector('c-polling-step').connectedCallback();
this.nextDisabled = false;
}

Expand Down

0 comments on commit 148fa37

Please sign in to comment.