Persist row height

This commit is contained in:
Adria Navarro 2024-12-30 21:50:31 +01:00
parent 3a6e0406cf
commit 07416e3e4a
3 changed files with 3 additions and 1 deletions

View File

@ -149,6 +149,7 @@ export async function create(ctx: Ctx<CreateViewRequest, CreateViewResponse>) {
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<UpdateViewRequest, UpdateViewResponse>) {
sort: view.sort,
schema,
primaryDisplay: view.primaryDisplay,
rowHeight: view.rowHeight,
}
const { view: result, existingView } = await sdk.views.update(

View File

@ -99,6 +99,7 @@ export interface ViewV2 {
type?: SortType
}
schema?: ViewV2Schema
rowHeight?: number
}
export interface PublicAPIView extends Omit<ViewV2, "query" | "queryUI"> {

View File

@ -2,7 +2,6 @@ import { UITable, UIView } from "@budibase/types"
export type UIDatasource = (UITable | UIView) & {
type: string
rowHeight?: number
}
export interface UIFieldMutation {