mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-22 23:18:27 +01:00
Fix mes examples being undefined if empty
This commit is contained in:
parent
d1f1299d43
commit
4fdff9fce2
@ -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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user