Skip to content

Commit

Permalink
#88. Fix array check when there is no component
Browse files Browse the repository at this point in the history
  • Loading branch information
serebrov committed Jan 31, 2021
1 parent a39dee4 commit 5c04c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default {
},
getCategoryComponent(index) {
let component = this.$refs['categories_' + index]
if ('0' in component) {
if (component && '0' in component) {
// Vue 2 has $refs under v-for as an array.
return component['0']
}
Expand Down

0 comments on commit 5c04c48

Please sign in to comment.