Merge pull request #3317 from NodudeWasTaken/fix-empty-examples Fix mes examples being undefined if empty

5e396e2a91a50f3e9c70e82a5408207d53a534db

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -3902,7 +3902,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
3902 * @returns {string[]} Examples array with block heading3902 * @returns {string[]} Examples array with block heading
3903 */3903 */
3904 function parseMesExamples(examplesStr) {3904 function parseMesExamples(examplesStr) {
3905 if (examplesStr.length === 0 || examplesStr === '<START>') {3905 if (!examplesStr || examplesStr.length === 0 || examplesStr === '<START>') {
3906 return [];3906 return [];
3907 }3907 }
39083908