Skip to content

Commit c5fb54d

Browse files
committed
fix: catch error if assistant is not found
1 parent 4321e5d commit c5fb54d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/+layout.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ export const load = async ({ depends, fetch }) => {
6262
return undefined;
6363
}
6464
return `/settings/assistants/${conv.assistantId}/avatar.jpg?hash=${assistant.avatar}`;
65-
}),
65+
})
66+
.catch(() => undefined),
6667
}
6768
: {}),
6869
} satisfies ConvSidebar;

0 commit comments

Comments
 (0)