mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
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
This commit is contained in:
parent
ebcf4c7c16
commit
e87e564462
@ -67,7 +67,7 @@ export default class PublishModalComponent extends Component {
|
|||||||
return;
|
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;
|
let count = result.meta.pagination.total;
|
||||||
|
|
||||||
count += 1; // account for the new post
|
count += 1; // account for the new post
|
||||||
|
Loading…
Reference in New Issue
Block a user