Skip to content

Commit

Permalink
chore(ui): properly check the existence of fields inside schema
Browse files Browse the repository at this point in the history
* chore(ui): remove unnecessary binding of listeners

* chore(ui): check the existence of fields
  • Loading branch information
MilosPaunovic committed Jan 30, 2025
1 parent c792d9b commit aa24c88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ui/src/components/code/segments/Task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
v-else
:is="lastBreadcumb.component.type"
v-bind="lastBreadcumb.component.props"
v-on="lastBreadcumb.component.listeners"
:model-value="lastBreadcumb.component.props.modelValue"
@update:model-value="validateTask"
/>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/flows/tasks/TaskObject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
emits: ["update:modelValue"],
methods: {
properties(requiredFields) {
if (this.schema) {
if (this.schema?.properties) {
const properties = Object.entries(
this.schema.properties,
).reduce((acc, [key, value]) => {
Expand Down

0 comments on commit aa24c88

Please sign in to comment.