fix eval preview

This commit is contained in:
Ruben Fiszel
2023-12-01 00:02:39 +01:00
parent d4374a0103
commit 1bef60dd50
2 changed files with 2 additions and 1 deletions

View File

@@ -208,6 +208,7 @@
})
editor.onDidBlurEditorText(() => {
dispatch('blur')
code = getCode()
})

View File

@@ -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>