Skip to content

Commit

Permalink
operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Dec 25, 2024
1 parent ceddf99 commit e74e235
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/app/schemas/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class ConfigFieldCondition(BaseModel):
description="Key of the field to compare (optional if using operators like 'notEmpty')."
)
operator: Optional[ConfigFieldConditionOperator] = Field(
None, alias="op",
description="Comparison operator used for this condition (aliased to 'op')."
None,
description="Comparison operator used for this condition."
)
value: Optional[Any] = Field(
None,
Expand Down
2 changes: 1 addition & 1 deletion frameos/src/apps/data/qr/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"showIf": [
{
"field": "codeType",
"op": "eq",
"operator": "eq",
"value": "Custom"
}
]
Expand Down
4 changes: 2 additions & 2 deletions frameos/src/apps/render/split/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
],
"showIf": [
{
"op": "notEmpty"
"operator": "notEmpty"
},
{
"field": "hideEmpty",
"op": "eq",
"operator": "eq",
"value": "false"
}
]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/frame/panels/Control/controlLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const controlLogic = kea<controlLogicType>([
try {
const response = await apiFetch(`/api/frames/${props.frameId}/state`)
if (!response.ok) {
throw new Error('Failed to fetch logs')
throw new Error('Failed to fetch frame state')
}
return await response.json()
} catch (error) {
Expand Down

0 comments on commit e74e235

Please sign in to comment.