mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix mes examples being undefined if empty
This commit is contained in:
@ -3827,7 +3827,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
|
|||||||
* @returns {string[]} Examples array with block heading
|
* @returns {string[]} Examples array with block heading
|
||||||
*/
|
*/
|
||||||
function parseMesExamples(examplesStr) {
|
function parseMesExamples(examplesStr) {
|
||||||
if (examplesStr.length === 0 || examplesStr === '<START>') {
|
if (!examplesStr || examplesStr.length === 0 || examplesStr === '<START>') {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user