From 927620d7e9031e272e94ad113aaddc73dd1e3f16 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 17 Sep 2022 03:31:58 +0100 Subject: [PATCH] Fix SvelteMarkdown throwing an error when no README is given in crate --- chartered-frontend/src/routes/(authed)/crates/[organisation]/[crate]/+page.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chartered-frontend/src/routes/(authed)/crates/[organisation]/[crate]/+page.svelte b/chartered-frontend/src/routes/(authed)/crates/[organisation]/[crate]/+page.svelte index aa173ee..947c53d 100644 --- a/chartered-frontend/src/routes/(authed)/crates/[organisation]/[crate]/+page.svelte +++ a/chartered-frontend/src/routes/(authed)/crates/[organisation]/[crate]/+page.svelte @@ -186,7 +186,11 @@ /> {/each} {:then crate} - + {#if crate.readme} + + {:else} + No README exists for the current crate version. + {/if} {/await} {:else if currentTab === Tab.MEMBERS} -- rgit 0.1.3