From bd1a04ff1bcdb49c01b14b9ffa41353bd223f7d8 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 14 Jan 2025 11:01:41 +0100 Subject: [PATCH] Type UIDatasource --- packages/types/src/ui/stores/grid/datasource.ts | 2 +- packages/types/src/ui/stores/grid/table.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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?: {