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 a97df2f commit 04fc15f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/main/resources/web/assets/js/rb-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,13 +972,15 @@ class AnyRecordSelector extends RecordSelector {
allowClear: false,
})
.on('change', (e) => {
this.setState(
{
entity: e.target.value,
entityLabel: this.__select2Entity.select2('data')[0].text,
},
() => this._initSelect2(true)
)
if (e.target.value) {
this.setState(
{
entity: e.target.value,
entityLabel: this.__select2Entity.select2('data')[0].text,
},
() => this._initSelect2(true)
)
}
})
this.__select2Entity = s2entity
// init
Expand Down

0 comments on commit 04fc15f

Please sign in to comment.