Skip to content

Commit

Permalink
fix multiple select resource intial values
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Mar 12, 2023
1 parent 8de0fa5 commit 290aa0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/src/data_resources/components/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ export default {
this.value = this.modelValue
} else if (this.value?.length) {
this.loadMultipleResourceoptionsById(this.value)
} else if (this.modelValue && typeof this.modelValue === 'object') {
this.value = Object.values(this.modelValue)
this.loadMultipleResourceoptionsById(this.value)
} else {
this.value ||= []
}
Expand Down

0 comments on commit 290aa0c

Please sign in to comment.