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 8f88187e49
commit 479b5870dd
1 changed files with 1 additions and 1 deletions

View File

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