From 561bed9cc27f7588cebc811f1d114887e6e8666e Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 27 Mar 2025 22:30:06 +0200 Subject: [PATCH] Replace goofy comment --- public/scripts/world-info.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 00c12034e..06dbe1c73 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -5406,9 +5406,7 @@ export async function moveWorldInfoEntry(sourceName, targetName, uid) { } entryToMove.uid = newUid; - // Reset displayIndex or let it be recalculated based on target book's sorting? - // For simplicity, let's assign a high index initially, assuming it might be sorted later. - // Or maybe better, find the max displayIndex in target and add 1? + // Place the entry at the end of the target lorebook const maxDisplayIndex = Object.values(targetData.entries).reduce((max, entry) => Math.max(max, entry.displayIndex ?? -1), -1); entryToMove.displayIndex = maxDisplayIndex + 1;