This commit is contained in:
Andrew Kingston 2023-08-22 11:48:06 +01:00
parent 51f6574942
commit e77644ce11
3 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
import { API } from "api"
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte"
import GridFilterButton from "components/backend/DataTable/buttons/grid/GridFilterButton.svelte"
import GridManageAccessButton from "components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte";
import GridManageAccessButton from "components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte"
$: id = $viewsV2.selected?.id
$: datasource = {

View File

@ -7,10 +7,10 @@
$: resourceId = getResourceID($datasource)
const getResourceID = datasource => {
if (!datasource) {
return null
}
return datasource.type === "table" ? datasource.tableId : datasource.id
if (!datasource) {
return null
}
return datasource.type === "table" ? datasource.tableId : datasource.id
}
</script>

View File

@ -69,7 +69,7 @@ export const deriveStores = context => {
}
export const createActions = context => {
const { columns, stickyColumn, config, datasource, definition } = context
const { columns, stickyColumn, datasource, definition } = context
// Checks if we have a certain column by name
const hasColumn = column => {