WI: Fix adding empty text to recursion buffer

0088333ebf52376f3e83f4f76b8dc05a87283e24

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

1 files changed, +4 -2Ignore whitespace
public/scripts/world-info.js+4 -2
@@ -4264,8 +4264,10 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
4264 if (scanState) {4264 if (scanState) {
4265 const text = successfulNewEntriesForRecursion4265 const text = successfulNewEntriesForRecursion
4266 .map(x => x.content).join('\n');4266 .map(x => x.content).join('\n');
4267 buffer.addRecurse(text);4267 if (text) {
4268 allActivatedText = (text + '\n' + allActivatedText);4268 buffer.addRecurse(text);
4269 allActivatedText = (text + '\n' + allActivatedText);
4270 }
4269 } else {4271 } else {
4270 logNextState('[WI] Scan done. No new entries to prompt. Stopping.');4272 logNextState('[WI] Scan done. No new entries to prompt. Stopping.');
4271 }4273 }