From a07b89da6fd5fa15735919b9ddd92914268e2961 Mon Sep 17 00:00:00 2001 From: Aly Mobarak <147055589+AlyMobarak@users.noreply.github.com> Date: Tue, 21 May 2024 13:30:21 +0300 Subject: [PATCH] Updated filter to filter null message objects as well. --- src/routes/(app)/c/[id]/+page.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index ce9686fbd..1fc2ddec9 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -619,6 +619,7 @@ : undefined, ...messages ] + .filter((message) => message) .filter((message) => message.content != "") .map((message, idx, arr) => ({ role: message.role,