mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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
|
return array !== null && array !== undefined && Array.isArray(array) && array.length > 0
|
||||||
},
|
},
|
||||||
isValidTextValueForKey (obj, key) {
|
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 () {
|
fetchZoneData () {
|
||||||
this.zones = []
|
this.zones = []
|
||||||
|
|||||||
@ -258,7 +258,7 @@ export default {
|
|||||||
return key in obj && obj[key] != null
|
return key in obj && obj[key] != null
|
||||||
},
|
},
|
||||||
isValidTextValueForKey (obj, key) {
|
isValidTextValueForKey (obj, key) {
|
||||||
return this.isValidValueForKey(obj, key) && obj[key].length > 0
|
return this.isValidValueForKey(obj, key) && String(obj[key]).length > 0
|
||||||
},
|
},
|
||||||
fetchZoneData () {
|
fetchZoneData () {
|
||||||
this.zones = []
|
this.zones = []
|
||||||
|
|||||||
@ -442,7 +442,7 @@ export default {
|
|||||||
return this.isValidValueForKey(obj, key) && obj[key] === true
|
return this.isValidValueForKey(obj, key) && obj[key] === true
|
||||||
},
|
},
|
||||||
isValidTextValueForKey (obj, key) {
|
isValidTextValueForKey (obj, key) {
|
||||||
return this.isValidValueForKey(obj, key) && obj[key].length > 0
|
return this.isValidValueForKey(obj, key) && String(obj[key]).length > 0
|
||||||
},
|
},
|
||||||
fetchZoneData () {
|
fetchZoneData () {
|
||||||
this.zones = []
|
this.zones = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user