Replace goofy comment

561bed9cc27f7588cebc811f1d114887e6e8666e

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

1 files changed, +1 -3Showing whitespace changes
public/scripts/world-info.js+1 -3
@@ -5406,9 +5406,7 @@ export async function moveWorldInfoEntry(sourceName, targetName, uid) {
5406 }5406 }
54075407
5408 entryToMove.uid = newUid;5408 entryToMove.uid = newUid;
5409 // Reset displayIndex or let it be recalculated based on target book's sorting?5409 // Place the entry at the end of the target lorebook
5410 // For simplicity, let's assign a high index initially, assuming it might be sorted later.
5411 // Or maybe better, find the max displayIndex in target and add 1?
5412 const maxDisplayIndex = Object.values(targetData.entries).reduce((max, entry) => Math.max(max, entry.displayIndex ?? -1), -1);5410 const maxDisplayIndex = Object.values(targetData.entries).reduce((max, entry) => Math.max(max, entry.displayIndex ?? -1), -1);
5413 entryToMove.displayIndex = maxDisplayIndex + 1;5411 entryToMove.displayIndex = maxDisplayIndex + 1;
54145412