From a4ba2697c73bab24a8b2115e94fadd1551aedecb Mon Sep 17 00:00:00 2001 From: Felix Schlegel Date: Wed, 22 Jan 2025 12:25:33 +0100 Subject: [PATCH] feat: remove promise rejection errors from being displayed Those are mainly for the developer and don't provide any advantage for the user --- .../composites/paper-components/paper-view/PaperDetail.svelte | 4 ++-- .../paper-components/paper-view/cards/PaperDetailsCard.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/components/composites/paper-components/paper-view/PaperDetail.svelte b/src/lib/components/composites/paper-components/paper-view/PaperDetail.svelte index ffdaf22..134b242 100644 --- a/src/lib/components/composites/paper-components/paper-view/PaperDetail.svelte +++ b/src/lib/components/composites/paper-components/paper-view/PaperDetail.svelte @@ -37,7 +37,7 @@ Usage: {:then} - {:catch error} - Couldn't load {key}{error ? `: ${error}` : ""} + {:catch} + Couldn't load {key} {/await} diff --git a/src/lib/components/composites/paper-components/paper-view/cards/PaperDetailsCard.svelte b/src/lib/components/composites/paper-components/paper-view/cards/PaperDetailsCard.svelte index a93137c..d28f02c 100644 --- a/src/lib/components/composites/paper-components/paper-view/cards/PaperDetailsCard.svelte +++ b/src/lib/components/composites/paper-components/paper-view/cards/PaperDetailsCard.svelte @@ -155,8 +155,8 @@ Usage: maxHeightActionProps={{ showButtonBar, showAdditionalInfos }} value={paper.abstrakt} /> - {:catch error} - Couldn't load abstract{error ? `: ${error}` : ""} + {:catch} + Couldn't load Abstract {/await}