Skip to content

Commit

Permalink
add check for page type
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanales committed Jul 5, 2021
1 parent f0f131c commit 3c21206
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ export const updateNavigationLinkBlockAttributes = (
};

const useIsInvalidLink = ( kind, type, id ) => {
const isPostType = kind === 'post-type' || type === 'post';
const isPostType =
'post-type' === kind || 'post' === type || 'page' === type;
const hasId = Number.isInteger( id );
const postStatus = useSelect(
( select ) => {
Expand Down

0 comments on commit 3c21206

Please sign in to comment.