From e87e56446220d17a44f1979f16bd489da2f141f5 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 11 May 2022 10:37:32 +0100 Subject: [PATCH] Fixed published posts count in publish flow no issue - the count fetch was including all posts rather than just published ones so it never matched the expected count --- ghost/admin/app/components/editor-labs/modals/publish-flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/editor-labs/modals/publish-flow.js b/ghost/admin/app/components/editor-labs/modals/publish-flow.js index f55d9deb15..ee9ad7d836 100644 --- a/ghost/admin/app/components/editor-labs/modals/publish-flow.js +++ b/ghost/admin/app/components/editor-labs/modals/publish-flow.js @@ -67,7 +67,7 @@ export default class PublishModalComponent extends Component { return; } - const result = yield this.store.query('post', {limit: 1}); + const result = yield this.store.query('post', {status: 'published', limit: 1}); let count = result.meta.pagination.total; count += 1; // account for the new post