Skip to content

Commit

Permalink
Post Template: fix incorrect offset query (#56440)
Browse files Browse the repository at this point in the history
* Post Template: fix incorrect offset query

* Remove unnecessary code
  • Loading branch information
t-hamano authored and fullofcaffeine committed Dec 1, 2023
1 parent 0862531 commit 3612d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-template/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default function PostTemplateEdit( {
slug: templateSlug.replace( 'category-', '' ),
} );
const query = {
offset: perPage ? perPage + offset : 0,
offset: offset || 0,
order,
orderby: orderBy,
};
Expand Down

1 comment on commit 3612d52

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 3612d52.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7064324022
📝 Reported issues:

Please sign in to comment.