diff --git a/packages/types/src/ui/stores/grid/datasource.ts b/packages/types/src/ui/stores/grid/datasource.ts index 9927518133..f4210f6725 100644 --- a/packages/types/src/ui/stores/grid/datasource.ts +++ b/packages/types/src/ui/stores/grid/datasource.ts @@ -1,6 +1,6 @@ import { UITable, UIView } from "@budibase/types" -export type UIDatasource = UITable | UIView +export type UIDatasource = UITable | (Omit & { type: "viewV2" }) export interface UIFieldMutation { visible?: boolean diff --git a/packages/types/src/ui/stores/grid/table.ts b/packages/types/src/ui/stores/grid/table.ts index e69f9fd38f..7b6d659e4c 100644 --- a/packages/types/src/ui/stores/grid/table.ts +++ b/packages/types/src/ui/stores/grid/table.ts @@ -8,10 +8,9 @@ import { UISearchFilter, } from "@budibase/types" -export interface UITable extends Omit { +export interface UITable extends Table { name: string id: string - type: string tableId: string primaryDisplay?: string sort?: {