Commit 67a1ce76 authored by Yechang's avatar Yechang
Browse files

fix(feedback): fix no feedback

parent 23c1bb9e
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ export const load: ServerLoad = async ({ params }) => {
		include: {
			problem: true,
			submitter: true,
			feedback: true,
			tasks: {
				orderBy: {
					createdAt: 'desc'
@@ -36,7 +37,7 @@ export const load: ServerLoad = async ({ params }) => {
	return {
		submission: {
			...s,
			task: s.tasks?.[0] || null,
			// task: s.tasks?.[0] || null,
			files: await Promise.all(
				files.map(async (f) => {
					const url = await signDownloadRequest(f.id);
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
	export let data: PageData;

	const { submission } = data;
	const { submitter, problem, feedback, task } = submission;
	const { submitter, problem, feedback } = submission;
	const result = contentSchema.safeParse(feedback?.content || '[]');
</script>