Fixed linting errors and removed debug log

This commit is contained in:
Simon Backx 2022-05-02 10:52:27 +02:00
parent fdf425d95a
commit 7ad8f63b22
2 changed files with 1 additions and 2 deletions

View File

@ -40,6 +40,5 @@ export default class Newsletter extends Component {
let result = yield response.json();
this.newsletters = result.posts || [];
console.log(this.newsletters);
}
}

View File

@ -44,7 +44,7 @@ export default class Resources extends Component {
const order = encodeURIComponent('published_at DESC');
const key = encodeURIComponent(API_KEY);
const limit = encodeURIComponent(RESOURCE_COUNT);
const filter = encodeURIComponent('tag:'+this.tag);
const filter = encodeURIComponent('tag:' + this.tag);
let response = yield fetch(`${API_URL}/ghost/api/content/posts/?limit=${limit}&order=${order}&key=${key}&include=none&filter=${filter}`);
if (!response.ok) {
// eslint-disable-next-line