mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00:00
Added in if statement
This commit is contained in:
@@ -355,7 +355,9 @@ export function setSpellCheckLanguages(preferredLangs: string[]) {
|
||||
|
||||
export async function getAvailableSpellCheckLanguages(): Promise<string[]> {
|
||||
const plaf = PlatformPeg.get();
|
||||
return plaf.getAvailableSpellCheckLanguages();
|
||||
if (plaf) {
|
||||
return plaf.getAvailableSpellCheckLanguages();
|
||||
}
|
||||
}
|
||||
|
||||
export function getAllLanguagesFromJson() {
|
||||
|
||||
Reference in New Issue
Block a user