From 71850f8497e4529ec4f9c38c0e5bd11bcfc09615 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 22 Aug 2024 16:20:59 +0200 Subject: [PATCH] nosql: show filter if not rows matched --- .../web/src/formview/FormViewFilterColumn.svelte | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/web/src/formview/FormViewFilterColumn.svelte b/packages/web/src/formview/FormViewFilterColumn.svelte index a51c4974..99464443 100644 --- a/packages/web/src/formview/FormViewFilterColumn.svelte +++ b/packages/web/src/formview/FormViewFilterColumn.svelte @@ -26,7 +26,7 @@ if (display?.filterBehaviourOverride) { return display?.filterBehaviourOverride; } - const fromDriver = display?.driver?.getFilterBehaviour(column.dataType, standardFilterBehaviours); + const fromDriver = display?.driver?.getFilterBehaviour(column?.dataType, standardFilterBehaviours); if (fromDriver) return fromDriver; if (isDynamicStructure) return mongoFilterBehaviour; @@ -34,10 +34,14 @@ } -{#if column} +{#if column || isDynamicStructure}
- + {#if column} + + {:else} + {uniqueName} + {/if}
{/if}