mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36: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}
|
{/if}
|
||||||
</StructuredListCell>
|
</StructuredListCell>
|
||||||
<StructuredListCell>
|
<StructuredListCell>
|
||||||
{#each prop.type.split(" | ") as type, i (type)}
|
{#each (prop.type || "").split(" | ") as type, i (type)}
|
||||||
<div
|
<div
|
||||||
class="cell"
|
class="cell"
|
||||||
style="z-index: {prop.type.split(' | ').length - i}"
|
style="z-index: {(prop.type || '').split(' | ').length - i}"
|
||||||
>
|
>
|
||||||
{#if type.startsWith("typeof")}
|
{#if type.startsWith("typeof")}
|
||||||
<TooltipDefinition
|
<TooltipDefinition
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue