Lint
This commit is contained in:
parent
51f6574942
commit
e77644ce11
|
@ -4,7 +4,7 @@
|
||||||
import { API } from "api"
|
import { API } from "api"
|
||||||
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte"
|
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte"
|
||||||
import GridFilterButton from "components/backend/DataTable/buttons/grid/GridFilterButton.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
|
$: id = $viewsV2.selected?.id
|
||||||
$: datasource = {
|
$: datasource = {
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
$: resourceId = getResourceID($datasource)
|
$: resourceId = getResourceID($datasource)
|
||||||
|
|
||||||
const getResourceID = datasource => {
|
const getResourceID = datasource => {
|
||||||
if (!datasource) {
|
if (!datasource) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
return datasource.type === "table" ? datasource.tableId : datasource.id
|
return datasource.type === "table" ? datasource.tableId : datasource.id
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ export const deriveStores = context => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createActions = 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
|
// Checks if we have a certain column by name
|
||||||
const hasColumn = column => {
|
const hasColumn = column => {
|
||||||
|
|
Loading…
Reference in New Issue