mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-13 08:02:47 +00:00
lots of components dont respect the type and pass undefined
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
type Props = {
|
||||
code: string
|
||||
code?: string
|
||||
fontSize: number
|
||||
marginLeft?: string
|
||||
className?: string
|
||||
@@ -25,7 +25,7 @@
|
||||
style="font-size: {fontSize}px;"
|
||||
>
|
||||
{code}
|
||||
{#if code.endsWith('\n')}
|
||||
{#if code?.endsWith('\n')}
|
||||
|
||||
{/if}
|
||||
</code>
|
||||
|
||||
Reference in New Issue
Block a user