Skip to content

Commit

Permalink
Item picker: load items when passed an empty array (#1073)
Browse files Browse the repository at this point in the history
Fix #1062.

Signed-off-by: Yannick Schaus <[email protected]>
  • Loading branch information
ghys authored May 30, 2021
1 parent 500ebaf commit d08803b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
},
created () {
this.smartSelectParams.closeOnSelect = !(this.multiple)
if (!this.items) {
if (!this.items || !this.items.length) {
// TODO use a Vuex store
this.$oh.api.get('/rest/items').then((items) => {
this.sortAndFilterItems(items)
Expand Down

0 comments on commit d08803b

Please sign in to comment.