view fixes

This commit is contained in:
Martin McKeaveney 2020-08-25 14:15:01 +01:00
parent b2761fcd51
commit 81bc8432a7
2 changed files with 5 additions and 3 deletions

View File

@ -42,8 +42,10 @@
}
</script>
<Table title={decodeURI(view.name)} schema={view.schema} {data}>
<Table title={decodeURI(name)} schema={view.schema} {data}>
<FilterPopover {view} />
<CalculationPopover {view} />
<GroupByPopover {view} />
{#if view.calculation}
<GroupByPopover {view} />
{/if}
</Table>

View File

@ -53,8 +53,8 @@
let anchor
let dropdown
let filters = view.filters || []
$: filters = view.filters || []
$: viewModel = $backendUiStore.models.find(
({ _id }) => _id === $backendUiStore.selectedView.modelId
)