We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b55e69 commit 10724d0Copy full SHA for 10724d0
1 file changed
src/lib/components/workspace/Models/ModelEditor.svelte
@@ -296,9 +296,7 @@
296
};
297
298
onMount(async () => {
299
- if (!$tools) {
300
- await tools.set(await getTools(localStorage.token));
301
- }
+ await tools.set((await getTools(localStorage.token).catch(() => null)) ?? []);
302
skillsList = (await getSkills(localStorage.token).catch(() => null)) ?? [];
303
if (!$functions) {
304
await functions.set(await getFunctions(localStorage.token));
0 commit comments