Fix mes examples being undefined if empty
| @@ -3827,7 +3827,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | |||
| 3827 | * @returns {string[]} Examples array with block heading | 3827 | * @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 | } |
| 3833 | 3833 | ||