Skip to content

Commit 66953a3

Browse files
committed
fix export on object when keyPrefix is only a number (like Account or Case) #635
1 parent 6394ebe commit 66953a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

force-app/main/default/lwc/orgcheckApp/orgcheckApp.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,19 +1679,19 @@ export default class OrgcheckApp extends LightningElement {
16791679
header: 'General information',
16801680
columns: [ 'Label', 'Value' ],
16811681
rows: [
1682-
[ 'API Name', this.objectData.apiname ],
1683-
[ 'Package', this.objectData.package ],
1684-
[ 'Singular Label', this.objectData.label ],
1685-
[ 'Plural Label', this.objectData.labelPlural ],
1686-
[ 'Description', this.objectData.description ],
1687-
[ 'Key Prefix', this.objectData.keyPrefix ],
1682+
[ 'API Name', `${this.objectData.apiname ?? ''}` ],
1683+
[ 'Package', `${this.objectData.package ?? ''}` ],
1684+
[ 'Singular Label', `${this.objectData.label ?? ''}` ],
1685+
[ 'Plural Label', `${this.objectData.labelPlural ?? ''}` ],
1686+
[ 'Description', `${this.objectData.description ?? ''}` ],
1687+
[ 'Key Prefix', `${this.objectData.keyPrefix ?? ''}` ],
16881688
[ 'Record Count (including deleted ones)', `${this.objectData.recordCount}` ],
16891689
[ 'Is Custom?', `${this.objectData.isCustom?'true':'false'}` ],
16901690
[ 'Feed Enable?', `${this.objectData.isFeedEnabled?'true':'false'}` ],
16911691
[ 'Most Recent Enabled?', `${this.objectData.isMostRecentEnabled?'true':'false'}` ],
16921692
[ 'Global Search Enabled?', `${this.objectData.isSearchable?'true':'false'}` ],
1693-
[ 'Internal Sharing', this.objectData.internalSharingModel ],
1694-
[ 'External Sharing', this.objectData.externalSharingModel ]
1693+
[ 'Internal Sharing', `${this.objectData.internalSharingModel ?? ''}` ],
1694+
[ 'External Sharing', `${this.objectData.externalSharingModel ?? ''}` ]
16951695
]
16961696
});
16971697
sheets.push(ocui.RowsFactory.createAndExport(TableDefinitions.StandardFieldsInObject, this.objectData.standardFields, 'Standard Fields', ocapi.SecretSauce.GetScoreRuleDescription));

0 commit comments

Comments
 (0)