From c9f48ca3b3fd2be47f37bc785d29defff9601c8a Mon Sep 17 00:00:00 2001 From: Mikkel Denker Date: Fri, 1 Mar 2024 13:26:18 +0100 Subject: [PATCH] gracefully handle summarization errors --- frontend/src/routes/search/Summary.svelte | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/routes/search/Summary.svelte b/frontend/src/routes/search/Summary.svelte index fea513e0..f1bb2135 100644 --- a/frontend/src/routes/search/Summary.svelte +++ b/frontend/src/routes/search/Summary.svelte @@ -19,16 +19,18 @@

- {#if tokens.length > 0} - {#each tokens as tok} - {tok} - {/each} - {:else} + {#if inProgress && tokens.length === 0} . . . + {:else if !inProgress && tokens.length === 0} + No summary available + {:else} + {#each tokens as tok} + {tok} + {/each} {/if}