mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed linting errors and removed debug log
This commit is contained in:
parent
fdf425d95a
commit
7ad8f63b22
2 changed files with 1 additions and 2 deletions
|
@ -40,6 +40,5 @@ export default class Newsletter extends Component {
|
||||||
|
|
||||||
let result = yield response.json();
|
let result = yield response.json();
|
||||||
this.newsletters = result.posts || [];
|
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 order = encodeURIComponent('published_at DESC');
|
||||||
const key = encodeURIComponent(API_KEY);
|
const key = encodeURIComponent(API_KEY);
|
||||||
const limit = encodeURIComponent(RESOURCE_COUNT);
|
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}`);
|
let response = yield fetch(`${API_URL}/ghost/api/content/posts/?limit=${limit}&order=${order}&key=${key}&include=none&filter=${filter}`);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
|
|
Loading…
Add table
Reference in a new issue