Add a null-check in bookmarks options

This commit is contained in:
SillyLossy
2023-03-29 20:05:55 +03:00
parent f94dd07ae5
commit 5adb6e9b8c

View File

@ -60,8 +60,8 @@ function getMainChatName(currentChat) {
}
function showBookmarksButtons() {
// In groups
if (selected_group) {
// In groups or without an active chat
if (selected_group || !characters[this_chid].chat) {
$("#option_back_to_main").hide();
$("#option_new_bookmark").hide();
}