Skip to content

Commit

Permalink
fix: unable to edit text fields if value is NULL, fixes #466
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Oct 20, 2022
1 parent 88408da commit 8621ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/libs/langDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8621ca5

Please sign in to comment.