Skip to content

Commit

Permalink
hotfix: task_relatedRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Jan 9, 2025
1 parent 0a9fbcd commit a97df2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/web/assets/js/project/task-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,9 +935,9 @@ class ValueRelatedRecord extends ValueComp {
}

handleChange() {
const value = this._relatedRecord.value() || null
super.handleChange({ target: { name: 'relatedRecord', value: value ? value.id : null } }, () => {
this.setState({ editMode: false, relatedRecordData: value })
const val = this._relatedRecord ? this._relatedRecord.getValue() || null : null
super.handleChange({ target: { name: 'relatedRecord', value: val ? val.id : null } }, () => {
this.setState({ editMode: false, relatedRecordData: val })
})
}
}
Expand Down

0 comments on commit a97df2f

Please sign in to comment.