Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit cc3a780

Browse files
Ghislain BeaulacGhislain Beaulac
authored andcommitted
fix(editor): LongText Editor should'nt throw i18n error when missing
1 parent 3ad3a4d commit cc3a780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/modules/angular-slickgrid/editors/longTextEditor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class LongTextEditor implements Editor {
5353
}
5454

5555
init(): void {
56-
const cancelText = this._translate.instant('CANCEL') || Constants.TEXT_CANCEL;
57-
const saveText = this._translate.instant('SAVE') || Constants.TEXT_SAVE;
56+
const cancelText = this._translate && this._translate.instant('CANCEL') || Constants.TEXT_CANCEL;
57+
const saveText = this._translate && this._translate.instant('SAVE') || Constants.TEXT_SAVE;
5858
const $container = $('body');
5959

6060
this.$wrapper = $(`<div class="slick-large-editor-text" />`).appendTo($container);

0 commit comments

Comments
 (0)