From a1f05afbf39e42b97514c08c95718d215c0fcc7a Mon Sep 17 00:00:00 2001 From: Eric Y Liu Date: Sat, 26 Jun 2021 14:08:55 -0700 Subject: [PATCH] docs(component-api): account for undefined type --- docs/src/components/ComponentApi.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/components/ComponentApi.svelte b/docs/src/components/ComponentApi.svelte index 25874ab2..de54abb0 100644 --- a/docs/src/components/ComponentApi.svelte +++ b/docs/src/components/ComponentApi.svelte @@ -78,10 +78,10 @@ {/if} - {#each prop.type.split(" | ") as type, i (type)} + {#each (prop.type || "").split(" | ") as type, i (type)}
{#if type.startsWith("typeof")}