mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add a null-check in bookmarks options
This commit is contained in:
@ -60,8 +60,8 @@ function getMainChatName(currentChat) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showBookmarksButtons() {
|
function showBookmarksButtons() {
|
||||||
// In groups
|
// In groups or without an active chat
|
||||||
if (selected_group) {
|
if (selected_group || !characters[this_chid].chat) {
|
||||||
$("#option_back_to_main").hide();
|
$("#option_back_to_main").hide();
|
||||||
$("#option_new_bookmark").hide();
|
$("#option_new_bookmark").hide();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user