Skip to content

Commit

Permalink
search for topic without section
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed Jun 28, 2024
1 parent 2d5dfaa commit 00f86fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/link/inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const InlineEditUI = ( {

useEffect( () => {
if ( title ) {
const term = title.trim();
const term = titleWithoutSection( title.trim() );
setLoading( true );
prefixSearch( lang, term, ( prefixData ) => {
if ( ! prefixData.length ) {
Expand Down

0 comments on commit 00f86fe

Please sign in to comment.