mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Fixed linting errors and removed debug log
This commit is contained in:
parent
fdf425d95a
commit
7ad8f63b22
@ -40,6 +40,5 @@ export default class Newsletter extends Component {
|
||||
|
||||
let result = yield response.json();
|
||||
this.newsletters = result.posts || [];
|
||||
console.log(this.newsletters);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user