1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

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 d16015587f
commit a69cc49501

View file

@ -2,6 +2,7 @@
import { Button, Input, Select } from "@budibase/bbui"
import { backendUiStore } from "builderStore"
import { notifier } from "builderStore/store/notifications"
import { FIELDS } from "constants/backend"
export let view = {}
export let onClosed
@ -9,7 +10,11 @@
$: viewTable = $backendUiStore.tables.find(
({ _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() {
backendUiStore.actions.views.save(view)