Skip to content

Commit 10724d0

Browse files
committed
refac
1 parent 4b55e69 commit 10724d0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/lib/components/workspace/Models/ModelEditor.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@
296296
};
297297
298298
onMount(async () => {
299-
if (!$tools) {
300-
await tools.set(await getTools(localStorage.token));
301-
}
299+
await tools.set((await getTools(localStorage.token).catch(() => null)) ?? []);
302300
skillsList = (await getSkills(localStorage.token).catch(() => null)) ?? [];
303301
if (!$functions) {
304302
await functions.set(await getFunctions(localStorage.token));

0 commit comments

Comments
 (0)