From 07416e3e4ab7c44edbb4515b88f5643811d209d3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 30 Dec 2024 21:50:31 +0100 Subject: [PATCH] Persist row height --- packages/server/src/api/controllers/view/viewsV2.ts | 2 ++ packages/types/src/documents/app/view.ts | 1 + packages/types/src/ui/stores/grid/datasource.ts | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/view/viewsV2.ts b/packages/server/src/api/controllers/view/viewsV2.ts index da579efed7..5376ce49c3 100644 --- a/packages/server/src/api/controllers/view/viewsV2.ts +++ b/packages/server/src/api/controllers/view/viewsV2.ts @@ -149,6 +149,7 @@ export async function create(ctx: Ctx) { sort: view.sort, schema, primaryDisplay: view.primaryDisplay, + rowHeight: view.rowHeight, } const result = await sdk.views.create(tableId, parsedView) @@ -229,6 +230,7 @@ export async function update(ctx: Ctx) { sort: view.sort, schema, primaryDisplay: view.primaryDisplay, + rowHeight: view.rowHeight, } const { view: result, existingView } = await sdk.views.update( diff --git a/packages/types/src/documents/app/view.ts b/packages/types/src/documents/app/view.ts index 1170284b15..fd97cee409 100644 --- a/packages/types/src/documents/app/view.ts +++ b/packages/types/src/documents/app/view.ts @@ -99,6 +99,7 @@ export interface ViewV2 { type?: SortType } schema?: ViewV2Schema + rowHeight?: number } export interface PublicAPIView extends Omit { diff --git a/packages/types/src/ui/stores/grid/datasource.ts b/packages/types/src/ui/stores/grid/datasource.ts index b1231ab4b3..1d9b6740a4 100644 --- a/packages/types/src/ui/stores/grid/datasource.ts +++ b/packages/types/src/ui/stores/grid/datasource.ts @@ -2,7 +2,6 @@ import { UITable, UIView } from "@budibase/types" export type UIDatasource = (UITable | UIView) & { type: string - rowHeight?: number } export interface UIFieldMutation {