mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-09 05:59:47 +01:00
fix some linting errors in ChuckNorris.vue
This commit is contained in:
parent
9fc0254cf8
commit
31b7a07078
@ -29,8 +29,8 @@ export default {
|
||||
},
|
||||
/* Combine data parameters for the API endpoint */
|
||||
endpoint() {
|
||||
if (this.categories != '') return `${widgetApiEndpoints.chuckNorris}`+`?category=${this.categories}`;
|
||||
if (this.categories == '') return `${widgetApiEndpoints.chuckNorris}`;
|
||||
if (this.categories !== '') return `${widgetApiEndpoints.chuckNorris}?category=${this.categories}`;
|
||||
return `${widgetApiEndpoints.chuckNorris}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user