Fix typing issue with component conditions
This commit is contained in:
parent
c298731d17
commit
e5141a7e77
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue