Clear cached WI on deletion Fixes #3672

12824bb680188c357520508ca538eb5f482ec6a3

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

1 files changed, +4 -0Showing whitespace changes
public/scripts/world-info.js+4 -0
@@ -3542,6 +3542,10 @@ export async function deleteWorldInfo(worldInfoName) {
35423542 return false;
35433543 }
35443544
3545+ if (worldInfoCache.has(worldInfoName)) {
3546+ worldInfoCache.delete(worldInfoName);
3547+ }
3548+
35453549 const existingWorldIndex = selected_world_info.findIndex((e) => e === worldInfoName);
35463550 if (existingWorldIndex !== -1) {
35473551 selected_world_info.splice(existingWorldIndex, 1);