From 3c212062da101f547ca83d0d359679140a9bef75 Mon Sep 17 00:00:00 2001 From: Vicente Canales Date: Mon, 5 Jul 2021 13:10:16 -0400 Subject: [PATCH] add check for page type --- packages/block-library/src/navigation-link/edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation-link/edit.js b/packages/block-library/src/navigation-link/edit.js index afdd5456acdcfb..583f6734cbb101 100644 --- a/packages/block-library/src/navigation-link/edit.js +++ b/packages/block-library/src/navigation-link/edit.js @@ -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 ) => {