fix: unable to edit text fields if value is NULL, fixes #466

This commit is contained in:
Fabio Di Stasio 2022-10-20 10:55:30 +02:00
parent 88408da745
commit 8621ca5333
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ function isMD (str: string) {
}
export function langDetector (str: string) {
if (!str.trim().length)
if (!str || !str.trim().length)
return 'text';
if (isJSON(str))
return 'json';