chat-ui
chat-ui copied to clipboard
[Assistants settings] Update `reported` data backend
Only check if current assistant that is being viewed was reported.
Previously, we were checking reported status on all the assistants of a user. However, this reported status is only useful for the assistant that is currently being viewed
How does it work when you have both a server load function and a universal load function for the same +page.svelte ? Seems like the type checker is not super happy about it haha but couldn't find more info about it
How does it work when you have both a server load function and a universal load function for the same
+page.svelte? Seems like the type checker is not super happy about it haha but couldn't find more info about it
// `data` comes from the server load function
export async function load({ parent, data }) {
const res = await parent();
// checks
...
return data;
}
Something like that