mirror of https://github.com/apache/cloudstack.git
fix the error of not being able to read the length of numeric (#5577)
This commit is contained in:
parent
e73445e5d5
commit
26b5d9423a
|
|
@ -270,7 +270,7 @@ export default {
|
|||
return array !== null && array !== undefined && Array.isArray(array) && array.length > 0
|
||||
},
|
||||
isValidTextValueForKey (obj, key) {
|
||||
return key in obj && obj[key] != null && obj[key].length > 0
|
||||
return key in obj && obj[key] != null && String(obj[key]).length > 0
|
||||
},
|
||||
fetchZoneData () {
|
||||
this.zones = []
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ export default {
|
|||
return key in obj && obj[key] != null
|
||||
},
|
||||
isValidTextValueForKey (obj, key) {
|
||||
return this.isValidValueForKey(obj, key) && obj[key].length > 0
|
||||
return this.isValidValueForKey(obj, key) && String(obj[key]).length > 0
|
||||
},
|
||||
fetchZoneData () {
|
||||
this.zones = []
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ export default {
|
|||
return this.isValidValueForKey(obj, key) && obj[key] === true
|
||||
},
|
||||
isValidTextValueForKey (obj, key) {
|
||||
return this.isValidValueForKey(obj, key) && obj[key].length > 0
|
||||
return this.isValidValueForKey(obj, key) && String(obj[key]).length > 0
|
||||
},
|
||||
fetchZoneData () {
|
||||
this.zones = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue