List importable domain: in case of null response, consider empty array instead
This commit is contained in:
parent
ef49cccb93
commit
518775341e
|
@ -171,7 +171,13 @@ export default {
|
|||
|
||||
SourcesApi.listSourceDomains(this.source._id)
|
||||
.then(
|
||||
response => (this.importableDomains = response.data),
|
||||
response => {
|
||||
if (response.data === null) {
|
||||
this.importableDomains = []
|
||||
} else {
|
||||
this.importableDomains = response.data
|
||||
}
|
||||
},
|
||||
error => {
|
||||
this.$root.$bvToast.toast(
|
||||
error.response.data.errmsg, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user