fix: fetch sidebar folders once per refresh instead of three times (#28662)

This commit is contained in:
G30 2026-08-24 17:50:46 -04:00 committed by GitHub
parent a6834f089b
commit 683c92d064
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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