We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe0110 commit 9eda048Copy full SHA for 9eda048
src/components/Widgets/RssFeed.vue
@@ -31,7 +31,6 @@
31
</template>
32
33
<script>
34
-import axios from 'axios';
35
import WidgetMixin from '@/mixins/WidgetMixin';
36
import { widgetApiEndpoints } from '@/utils/defaults';
37
@@ -91,16 +90,7 @@ export default {
91
90
methods: {
92
/* Make GET request to Rss2Json */
93
fetchData() {
94
- axios.get(this.endpoint)
95
- .then((response) => {
96
- this.processData(response.data);
97
- })
98
- .catch((error) => {
99
- this.error('Unable to RSS feed', error);
100
101
- .finally(() => {
102
- this.finishLoading();
103
- });
+ this.makeRequest(this.endpoint).then(this.processData);
104
},
105
/* Assign data variables to the returned data */
106
processData(data) {
0 commit comments