mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
remove duplicate error method
This commit is contained in:
@@ -47,13 +47,12 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.root = getAppRoot();
|
||||
|
||||
urlData({ url: `api/tours` })
|
||||
.then((response) => {
|
||||
this.tours = response;
|
||||
})
|
||||
.catch((error) => {
|
||||
this.error = this._errorMessage(error);
|
||||
this.error = error;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
@@ -70,10 +69,6 @@ export default {
|
||||
(tour.tags && tour.tags.join().toLowerCase().includes(query))
|
||||
);
|
||||
},
|
||||
_errorMessage(e) {
|
||||
const message = e && e.response && e.response.data && e.response.data.err_msg;
|
||||
return message || "Request failed for an unknown reason.";
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user