Skip to content

Commit

Permalink
chore(ui): check for missing property on update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic committed Feb 7, 2025
1 parent 95b94f3 commit e335b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/inputs/EditorView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -947,12 +947,12 @@
const onUpdateMetadata = (event, shouldSave) => {
if(shouldSave) {
metadata.value = {...metadata.value, ...(event.concurrency.limit === 0 ? {concurrency: null} : event)};
metadata.value = {...metadata.value, ...(event.concurrency?.limit === 0 ? {concurrency: null} : event)};
onSaveMetadata();
validateFlow(flowYaml.value)
} else {
metadata.value = event.concurrency.limit === 0 ? {concurrency: null} : event;
metadata.value = event.concurrency?.limit === 0 ? {concurrency: null} : event;
}
};
Expand Down

0 comments on commit e335b76

Please sign in to comment.