1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13: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 { 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)