diff --git a/packages/standard-components/src/DataGrid/Component.svelte b/packages/standard-components/src/DataGrid/Component.svelte index baaebf20aa..f8fa5d4e5a 100644 --- a/packages/standard-components/src/DataGrid/Component.svelte +++ b/packages/standard-components/src/DataGrid/Component.svelte @@ -11,13 +11,7 @@ import { onMount } from "svelte" import AgGrid from "@budibase/svelte-ag-grid" - import CreateRowButton from "./CreateRow/Button.svelte" - import { - TextButton as DeleteButton, - Icon, - Modal, - ModalContent, - } from "@budibase/bbui" + import { TextButton as DeleteButton, Icon, Modal, ModalContent } from "@budibase/bbui" export let _bb export let datasource = {} @@ -98,13 +92,6 @@ } }) - const isEditable = type => - type !== "boolean" && - type !== "options" && - // type !== "datetime" && - type !== "link" && - type !== "attachment" - const shouldHideField = name => { if (name.startsWith("_")) return true // always 'row' @@ -115,10 +102,6 @@ return false } - const handleNewRow = async () => { - data = await fetchData(datasource) - } - const handleUpdate = ({ detail }) => { data[detail.row] = detail.data updateRow(detail.data) @@ -152,7 +135,6 @@ {#if dataLoaded} {#if canAddDelete}