diff --git a/public/script.js b/public/script.js index 14d695611..22ab14db2 100644 --- a/public/script.js +++ b/public/script.js @@ -3902,7 +3902,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro * @returns {string[]} Examples array with block heading */ function parseMesExamples(examplesStr) { - if (examplesStr.length === 0 || examplesStr === '') { + if (!examplesStr || examplesStr.length === 0 || examplesStr === '') { return []; }