Updating group by functionality, so that relationships aren't an option.

This commit is contained in:
mike12345567 2021-02-24 17:21:53 +00:00
parent 43cb9878cf
commit 2b87f8bbb8
1 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@
import { Button, Input, Select } from "@budibase/bbui" import { Button, Input, Select } from "@budibase/bbui"
import { backendUiStore } from "builderStore" import { backendUiStore } from "builderStore"
import { notifier } from "builderStore/store/notifications" import { notifier } from "builderStore/store/notifications"
import { FIELDS } from "constants/backend"
export let view = {} export let view = {}
export let onClosed export let onClosed
@ -9,7 +10,11 @@
$: viewTable = $backendUiStore.tables.find( $: viewTable = $backendUiStore.tables.find(
({ _id }) => _id === $backendUiStore.selectedView.tableId ({ _id }) => _id === $backendUiStore.selectedView.tableId
) )
$: fields = viewTable && Object.keys(viewTable.schema) $: fields =
viewTable &&
Object.entries(viewTable.schema)
.filter(entry => entry[1].type !== FIELDS.LINK.type)
.map(([key]) => key)
function saveView() { function saveView() {
backendUiStore.actions.views.save(view) backendUiStore.actions.views.save(view)