Skip to content

Commit ed26bf8

Browse files
fix: null-safe bulkOperationConfig access in beginOperationSummary
1 parent 2424bba commit ed26bf8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/contentstack-bulk-operations/src/base-bulk-command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,12 @@ export abstract class BaseBulkCommand extends Command {
408408
* the label with the branch only when one is set. Shared with bulk-taxonomies via inheritance.
409409
*/
410410
protected beginOperationSummary(itemCount: number): void {
411-
const operationLabel = (this.bulkOperationConfig.operation || 'operation').toString().toUpperCase();
412-
const branchName = this.bulkOperationConfig.branch || '';
411+
const operationLabel = (this.bulkOperationConfig?.operation || 'operation').toString().toUpperCase();
412+
const branchName = this.bulkOperationConfig?.branch || '';
413413
CLIProgressManager.initializeGlobalSummary(
414414
branchName ? `BULK ${operationLabel}-${branchName}` : `BULK ${operationLabel}`,
415415
branchName,
416-
$t(messages.EXECUTING_OPERATION, { count: itemCount }),
416+
$t(messages.EXECUTING_OPERATION, { count: itemCount })
417417
);
418418
}
419419

0 commit comments

Comments
 (0)