Skip to content

Commit e9fb305

Browse files
authored
fix(bug): W-11836582 Fix cards migration halt on error
2 parents f344e86 + 3994142 commit e9fb305

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/migration/flexcard.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,22 @@ export class CardMigrationTool extends BaseMigrationTool implements MigrationToo
106106
return;
107107
}
108108

109-
const childCards = this.getChildCards(card);
110-
if (childCards.length > 0) {
111-
for (let childCardName of childCards) {
112-
// Upload child cards
113-
const childCard = allCards.find(c => c['Name'] === childCardName);
114-
if (childCard) {
115-
await this.uploadCard(allCards, childCard, cardsUploadInfo, originalRecords, uniqueNames);
109+
try {
110+
const childCards = this.getChildCards(card);
111+
if (childCards.length > 0) {
112+
for (let childCardName of childCards) {
113+
// Upload child cards
114+
const childCard = allCards.find(c => c['Name'] === childCardName);
115+
if (childCard) {
116+
await this.uploadCard(allCards, childCard, cardsUploadInfo, originalRecords, uniqueNames);
117+
}
116118
}
117-
}
118119

119-
this.updateChildCards(card);
120-
}
120+
this.updateChildCards(card);
121+
}
121122

122-
this.reportProgress(allCards.length, originalRecords.size);
123+
this.reportProgress(allCards.length, originalRecords.size);
123124

124-
try {
125125

126126
// Perform the transformation
127127
const invalidIpNames = new Map<string, string>();

0 commit comments

Comments
 (0)