Skip to content

Commit

Permalink
Add missing useSelect dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jul 31, 2023
1 parent 5ef7a93 commit 6efec0b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ import useEditedEntityRecord from '../../use-edited-entity-record';
import { store as editSiteStore } from '../../../store';

export default function DocumentActions() {
const isPage = useSelect( ( select ) => select( editSiteStore ).isPage() );
const isPage = useSelect(
( select ) => select( editSiteStore ).isPage(),
[]
);
return isPage ? <PageDocumentActions /> : <TemplateDocumentActions />;
}

Expand Down

0 comments on commit 6efec0b

Please sign in to comment.