refac: sidebar tag add behaviour

This commit is contained in:
Timothy J. Baek
2024-10-14 21:21:45 -07:00
parent 4c7651c113
commit d8a30bd6ae
4 changed files with 26 additions and 7 deletions
+4 -1
View File
@@ -179,7 +179,10 @@
console.log(type, tagName, chatId);
if (type === 'delete') {
currentChatPage.set(1);
await chats.set(await getChatListBySearchText(localStorage.token, search));
await chats.set(await getChatListBySearchText(localStorage.token, search, $currentChatPage));
} else if (type === 'add') {
currentChatPage.set(1);
await chats.set(await getChatListBySearchText(localStorage.token, search, $currentChatPage));
}
};