fix eval preview

This commit is contained in:
Ruben Fiszel
2023-12-01 00:02:39 +01:00
parent aa3708af9d
commit 2e8edd79d9
2 changed files with 2 additions and 1 deletions
@@ -208,6 +208,7 @@
})
editor.onDidBlurEditorText(() => {
dispatch('blur')
code = getCode()
})
@@ -104,7 +104,7 @@
>
<Highlight
language={json}
code={JSON.stringify($evalPreview[`${id}.${field}`] ?? null, null, 4)}
code={JSON.stringify($evalPreview[`${id}.${field}`] ?? null, null, 4) ?? 'null'}
/>
</div>
</div>