Fix typing issue with component conditions

This commit is contained in:
Andrew Kingston 2025-02-03 12:24:14 +00:00
parent c298731d17
commit e5141a7e77
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import { BudiStore } from "../BudiStore"
import { Utils } from "@budibase/frontend-core" import { Utils } from "@budibase/frontend-core"
import { import {
Component as ComponentType, Component as ComponentType,
ComponentCondition,
FieldType, FieldType,
Screen, Screen,
Table, Table,
@ -1136,7 +1137,7 @@ export class ComponentStore extends BudiStore<ComponentState> {
}) })
} }
async updateConditions(conditions: Record<string, any>) { async updateConditions(conditions: ComponentCondition[]) {
await this.patch((component: Component) => { await this.patch((component: Component) => {
component._conditions = conditions component._conditions = conditions
}) })