mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
docs(component-api): account for undefined type
This commit is contained in:
parent
390df96228
commit
a1f05afbf3
1 changed files with 2 additions and 2 deletions
|
@ -78,10 +78,10 @@
|
|||
{/if}
|
||||
</StructuredListCell>
|
||||
<StructuredListCell>
|
||||
{#each prop.type.split(" | ") as type, i (type)}
|
||||
{#each (prop.type || "").split(" | ") as type, i (type)}
|
||||
<div
|
||||
class="cell"
|
||||
style="z-index: {prop.type.split(' | ').length - i}"
|
||||
style="z-index: {(prop.type || '').split(' | ').length - i}"
|
||||
>
|
||||
{#if type.startsWith("typeof")}
|
||||
<TooltipDefinition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue