Skip to content

Commit

Permalink
Fix typing issue with component conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
aptkingston committed Feb 3, 2025
1 parent c298731 commit e5141a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/builder/src/stores/builder/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { BudiStore } from "../BudiStore"
import { Utils } from "@budibase/frontend-core"
import {
Component as ComponentType,
ComponentCondition,
FieldType,
Screen,
Table,
Expand Down Expand Up @@ -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) => {
component._conditions = conditions
})
Expand Down

0 comments on commit e5141a7

Please sign in to comment.