2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-04 06:32:23 +03:00

solved problems with null object in options

This commit is contained in:
Jimmy Porto
2018-11-21 15:39:24 -02:00
parent e0584cda96
commit 63f7007540
+1 -1
View File
@@ -542,7 +542,7 @@
option = this.findOptionByIndexValue(option)
}
if (typeof option === 'object') {
if (option && typeof option === 'object') {
if (!option.hasOwnProperty(this.label)) {
return console.warn(
`[vue-select warn]: Label key "option.${this.label}" does not` +