mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 04:00:48 +01:00
fix: unable to edit text fields if value is NULL, fixes #466
This commit is contained in:
parent
88408da745
commit
8621ca5333
@ -176,7 +176,7 @@ function isMD (str: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function langDetector (str: string) {
|
export function langDetector (str: string) {
|
||||||
if (!str.trim().length)
|
if (!str || !str.trim().length)
|
||||||
return 'text';
|
return 'text';
|
||||||
if (isJSON(str))
|
if (isJSON(str))
|
||||||
return 'json';
|
return 'json';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user