Skip to content

Commit

Permalink
Set default search query for initial suggestions to be for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Jan 10, 2024
1 parent 16e045d commit b7cb1fe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ const fetchLinkSuggestions = async (
) => {
const {
isInitialSuggestions = false,
initialSuggestionsSearchOptions = undefined,
initialSuggestionsSearchOptions = {
type: 'post',
subtype: 'page',
perPage: 20,
},
} = searchOptions;

const { disablePostFormats = false } = settings;
Expand Down

0 comments on commit b7cb1fe

Please sign in to comment.