Skip to content

Commit

Permalink
Compare using strings for template id
Browse files Browse the repository at this point in the history
  • Loading branch information
louwie17 committed Dec 12, 2024
1 parent 6972c79 commit fce61de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/fields/src/fields/template/template-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ export const TemplateEdit = ( {
select( coreStore )
);

const isPostsPage = +getPostsPageId() === postId;
const isPostsPage = getPostsPageId() === postId.toString();
const isFrontPage =
postType === 'page' && +getHomePage()?.postId === postId;
postType === 'page' &&
getHomePage()?.postId === postId.toString();

return {
templates: allTemplates,
Expand Down

0 comments on commit fce61de

Please sign in to comment.