From e3a67dcbd33ec206432bcd1cc860a8fb568c5e3f Mon Sep 17 00:00:00 2001 From: JackUait Date: Sat, 8 Nov 2025 01:52:34 +0300 Subject: [PATCH] fix: lint issues in __module.ts --- src/components/__module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/__module.ts b/src/components/__module.ts index a591c25c..04848d5e 100644 --- a/src/components/__module.ts +++ b/src/components/__module.ts @@ -103,6 +103,8 @@ export default class Module> this.config = config; this.eventsDispatcher = eventsDispatcher; + // Editor is initialized via the state setter after construction + this.Editor = {} as EditorModules; } /** @@ -131,6 +133,6 @@ export default class Module> * Returns true if current direction is RTL (Right-To-Left) */ protected get isRtl(): boolean { - return this.config.i18n.direction === 'rtl'; + return this.config.i18n?.direction === 'rtl'; } }