mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-19 16:03:29 +00:00
fix eval preview
This commit is contained in:
+3
-6
@@ -8,8 +8,6 @@
|
||||
import { inferDeps } from '../../appUtilsInfer'
|
||||
import { Maximize2 } from 'lucide-svelte'
|
||||
import { Drawer } from '$lib/components/common'
|
||||
import { Highlight } from 'svelte-highlight'
|
||||
import { json } from 'svelte-highlight/languages'
|
||||
|
||||
export let componentInput: EvalV2AppInput | undefined
|
||||
export let id: string
|
||||
@@ -102,10 +100,9 @@
|
||||
<div
|
||||
class="p-1 !text-2xs absolute rounded-b border-b border-r border-l bg-surface w-full z-[5000] overflow-auto"
|
||||
>
|
||||
<Highlight
|
||||
language={json}
|
||||
code={JSON.stringify($evalPreview[`${id}.${field}`] ?? null, null, 4) ?? 'null'}
|
||||
/>
|
||||
<pre class="text-tertiary"
|
||||
>{JSON.stringify($evalPreview[`${id}.${field}`] ?? null, null, 4) ?? 'null'}</pre
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user