diff --git a/web/js/utils.js b/web/js/utils.js index 203fbc2..1d82a8e 100644 --- a/web/js/utils.js +++ b/web/js/utils.js @@ -52,7 +52,7 @@ const REG_WILDCARD_SIMPLE_WORD = /[^{}_|]+/g; * @return {boolean} True if the text is longer than the maximum tag length, false otherwise. */ export function isLongText(text) { - return text.length > settingValues._maxTagLength; + return text?.length > settingValues._maxTagLength; } /**