Clear cached WI on deletion Fixes #3672

12824bb680188c357520508ca538eb5f482ec6a3

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

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