fix(ui): deduplicate store fetches with null-guards and mutex (#25943)
This commit is contained in:
@@ -58,8 +58,6 @@
|
||||
import { deleteFileById } from '$lib/apis/files';
|
||||
import { getChatById } from '$lib/apis/chats';
|
||||
import { getSessionUser } from '$lib/apis/auths';
|
||||
import { getTools } from '$lib/apis/tools';
|
||||
import { getSkills } from '$lib/apis/skills';
|
||||
|
||||
import { WEBUI_BASE_URL, WEBUI_API_BASE_URL, PASTED_TEXT_CHARACTER_LIMIT } from '$lib/constants';
|
||||
import { getOAuthClientAuthorizationUrl } from '$lib/apis/configs';
|
||||
@@ -1106,9 +1104,6 @@
|
||||
dropzoneElement.addEventListener('drop', onDrop, true);
|
||||
dropzoneElement.addEventListener('dragleave', onDragLeave);
|
||||
}
|
||||
|
||||
tools.set(await getTools(localStorage.token));
|
||||
skills.set(await getSkills(localStorage.token));
|
||||
};
|
||||
initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user