Skip to content

Commit 11c1f54

Browse files
chore: resolved comment
1 parent cb9940f commit 11c1f54

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/migration/flexcard.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,10 +1103,8 @@ export class CardMigrationTool extends BaseMigrationTool implements MigrationToo
11031103
mappedObject[CardMappings.Datasource__c] = JSON.stringify(datasource);
11041104
}
11051105

1106-
if (!this.IS_STANDARD_DATA_MODEL) {
1107-
const isCardActive: boolean = cardRecord[this.getFieldKey('Active__c')];
1108-
this.ensureCommunityTargets(mappedObject, isCardActive);
1109-
}
1106+
const isCardActive: boolean = cardRecord[this.getFieldKey('Active__c')];
1107+
this.ensureCommunityTargets(mappedObject, isCardActive);
11101108

11111109
// Update all dependencies comprehensively
11121110
this.updateAllDependenciesWithRegistry(mappedObject, invalidIpNames);
@@ -1617,6 +1615,7 @@ export class CardMigrationTool extends BaseMigrationTool implements MigrationToo
16171615
/**
16181616
* Ensures that the FlexCard Definition includes required Lightning Community targets
16191617
* Adds "lightningCommunity__Page" and "lightningCommunity__Default" if missing
1618+
* This is needed as vlocity wrapper can have flexcard which is unpublished but omniwapper needs published card
16201619
*/
16211620
private ensureCommunityTargets(mappedObject: any, isCardActive: boolean): void {
16221621
if (!isCardActive) {

0 commit comments

Comments
 (0)