chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

[Assistants settings] Update `reported` data backend

Open mishig25 opened this issue 1 year ago • 2 comments

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

mishig25 avatar Feb 22 '24 16:02 mishig25

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

nsarrazin avatar Feb 23 '24 13:02 nsarrazin

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

coyotte508 avatar Feb 23 '24 14:02 coyotte508