Skip to content

Commit

Permalink
fix(picker): make sure picker addon is available before translating
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding-SE committed Nov 21, 2019
1 parent e1347ec commit e295c26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export class ColumnPickerExtension implements Extension {
this.extensionUtility.translateItems(this.sharedService.allColumns, 'headerKey', 'name');

// update the Titles of each sections (command, customTitle, ...)
this._addon.updateAllTitles(this.sharedService.gridOptions.columnPicker);
if (this._addon && this._addon.updateAllTitles) {
this._addon.updateAllTitles(this.sharedService.gridOptions.columnPicker);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ export class GridMenuExtension implements Extension {
this.extensionUtility.translateItems(this.sharedService.allColumns, 'headerKey', 'name');

// update the Titles of each sections (command, customTitle, ...)
this._addon.updateAllTitles(this.sharedService.gridOptions.gridMenu);
if (this._addon && this._addon.updateAllTitles) {
this._addon.updateAllTitles(this.sharedService.gridOptions.gridMenu);
}
}
}

Expand Down

0 comments on commit e295c26

Please sign in to comment.