Skip to content

Commit

Permalink
fix: Front-end error
Browse files Browse the repository at this point in the history
(cherry picked from commit b07641c)
  • Loading branch information
wxg0103 authored and shaohuzhang1 committed Jan 8, 2025
1 parent e6e4b68 commit c6e9a99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ function onmousedown(item: any, data?: any, type?: string) {
}
}
}
console.log('xx', item)
props.workflowRef?.onmousedown(item)
emit('onmousedown', item)
}
Expand Down
8 changes: 4 additions & 4 deletions ui/src/workflow/nodes/application-node/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ const update_field = () => {
if (find_field) {
return {
...item,
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
value: JSON.parse(JSON.stringify(find_field.value)),
default_value: find_field.default_value,
value: find_field.value,
label:
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
}
Expand All @@ -235,8 +235,8 @@ const update_field = () => {
if (find_field) {
return {
...item,
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
value: JSON.parse(JSON.stringify(find_field.value)),
default_value: find_field.default_value,
value: find_field.value,
label:
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
}
Expand Down

0 comments on commit c6e9a99

Please sign in to comment.