From 12824bb680188c357520508ca538eb5f482ec6a3 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 12 Mar 2025 23:38:10 +0200 Subject: [PATCH] Clear cached WI on deletion Fixes #3672 --- public/scripts/world-info.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 7fda4f65f..a2dfb2dd4 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -3542,6 +3542,10 @@ export async function deleteWorldInfo(worldInfoName) { return false; } + if (worldInfoCache.has(worldInfoName)) { + worldInfoCache.delete(worldInfoName); + } + const existingWorldIndex = selected_world_info.findIndex((e) => e === worldInfoName); if (existingWorldIndex !== -1) { selected_world_info.splice(existingWorldIndex, 1);