From 7ad8f63b22f5627bf8b06f0c3f2208057cbcb2b8 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Mon, 2 May 2022 10:52:27 +0200 Subject: [PATCH] Fixed linting errors and removed debug log --- ghost/admin/app/components/dashboard/v5/resources/newsletter.js | 1 - ghost/admin/app/components/dashboard/v5/resources/resources.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ghost/admin/app/components/dashboard/v5/resources/newsletter.js b/ghost/admin/app/components/dashboard/v5/resources/newsletter.js index a85cd87442..ba54c5316a 100644 --- a/ghost/admin/app/components/dashboard/v5/resources/newsletter.js +++ b/ghost/admin/app/components/dashboard/v5/resources/newsletter.js @@ -40,6 +40,5 @@ export default class Newsletter extends Component { let result = yield response.json(); this.newsletters = result.posts || []; - console.log(this.newsletters); } } diff --git a/ghost/admin/app/components/dashboard/v5/resources/resources.js b/ghost/admin/app/components/dashboard/v5/resources/resources.js index 32b8edbd62..62e906c327 100644 --- a/ghost/admin/app/components/dashboard/v5/resources/resources.js +++ b/ghost/admin/app/components/dashboard/v5/resources/resources.js @@ -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