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 Nov 23, 2023
1 parent 799c807 commit 8a2f5bc
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

0 comments on commit 8a2f5bc

Please sign in to comment.