mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
cleanup group on auto load if name not found
This commit is contained in:
@@ -301,6 +301,11 @@ async function RA_autoloadchat() {
|
|||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
} else {
|
} else {
|
||||||
const result = await openGroupById(String(active_group));
|
const result = await openGroupById(String(active_group));
|
||||||
|
if (!result) {
|
||||||
|
setActiveGroup(null);
|
||||||
|
saveSettingsDebounced();
|
||||||
|
console.warn(`Currently active group with ID ${active_group} not found. Resetting to no active group.`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user