Fixing issue with cell renderer not falling back to string rendering when type unknown.

This commit is contained in:
mike12345567 2021-05-10 17:32:10 +01:00
parent 8f7b417738
commit 0debc239a1
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
} }
$: type = schema?.type ?? "string" $: type = schema?.type ?? "string"
$: customRenderer = customRenderers?.find(x => x.column === schema?.name) $: customRenderer = customRenderers?.find(x => x.column === schema?.name)
$: renderer = customRenderer?.component ?? typeMap[type] $: renderer = customRenderer?.component ?? typeMap[type] ?? StringRenderer
</script> </script>
{#if renderer && (customRenderer || (value != null && value !== ""))} {#if renderer && (customRenderer || (value != null && value !== ""))}