Fix mes examples being undefined if empty

4fdff9fce2baae51001654ed35091e5c7b23b184

Nodude <75137537+NodudeWasTaken@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -3827,7 +3827,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
3827 * @returns {string[]} Examples array with block heading3827 * @returns {string[]} Examples array with block heading
3828 */3828 */
3829 function parseMesExamples(examplesStr) {3829 function parseMesExamples(examplesStr) {
3830 if (examplesStr.length === 0 || examplesStr === '<START>') {3830 if (!examplesStr || examplesStr.length === 0 || examplesStr === '<START>') {
3831 return [];3831 return [];
3832 }3832 }
38333833