fix(ui): deduplicate store fetches with null-guards and mutex (#25943)

This commit is contained in:
G30
2026-06-17 00:07:11 +02:00
committed by GitHub
parent 22f2fe1ffb
commit ee3a49a88d
6 changed files with 113 additions and 114 deletions
@@ -248,9 +248,13 @@
};
onMount(async () => {
await tools.set(await getTools(localStorage.token));
if (!$tools) {
await tools.set(await getTools(localStorage.token));
}
skillsList = (await getSkills(localStorage.token).catch(() => null)) ?? [];
await functions.set(await getFunctions(localStorage.token));
if (!$functions) {
await functions.set(await getFunctions(localStorage.token));
}
// Fetch admin-configured default model metadata so the editor
// reflects the actual defaults rather than hardcoded values