fix: fetch sidebar folders once per refresh instead of three times

This commit is contained in:
silentoplayz 2026-08-16 14:17:24 -04:00
parent 31d08d592c
commit 90f4d406ab

View file

@ -308,10 +308,6 @@
folders = folderMap;
};
const initSharedFolders = async () => {
await initFolders();
};
const createFolder = async ({ name, data, parent_id }) => {
name = name?.trim();
if (!name) {
@ -384,8 +380,6 @@
allChatsLoaded = false;
chatListReady = false;
initFolders();
initSharedFolders();
await Promise.all([
(async () => {
console.log('Init tags');