From a48e5cd4e88c9367f1eb3edb43c5979684cc2de3 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 27 Nov 2020 18:15:22 +0000 Subject: [PATCH] Desktop: Fixed spell checker crash when no language is selected --- .../services/spellChecker/SpellCheckerServiceDriverNative.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-desktop/services/spellChecker/SpellCheckerServiceDriverNative.ts b/packages/app-desktop/services/spellChecker/SpellCheckerServiceDriverNative.ts index 28cc3f593..73b52b928 100644 --- a/packages/app-desktop/services/spellChecker/SpellCheckerServiceDriverNative.ts +++ b/packages/app-desktop/services/spellChecker/SpellCheckerServiceDriverNative.ts @@ -22,7 +22,7 @@ export default class SpellCheckerServiceDriverNative extends SpellCheckerService // If we pass an empty array, it disables spell checking // https://github.com/electron/electron/issues/25228 if (!v) { - this.session().setSpellCheckerLanguages(''); + this.session().setSpellCheckerLanguages([]); return; }