From 05d07effa232251dad39f2eedab6620e5a08b914 Mon Sep 17 00:00:00 2001 From: L <6723574+louisgv@users.noreply.github.com> Date: Tue, 8 Aug 2023 05:34:09 -0600 Subject: [PATCH] Update helper.ts --- src/api/helper.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/helper.ts b/src/api/helper.ts index 80782d076..884e9a3bc 100644 --- a/src/api/helper.ts +++ b/src/api/helper.ts @@ -6,6 +6,7 @@ export const parseEventSource = ( const result = data .split('\n\n') .filter(Boolean) + .filter((chunk) => chunk.startsWith(":")) // Ignore SSE comment event .map((chunk) => { const jsonString = chunk .split('\n')