Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove disambiguation pages from search results #107

Merged
merged 1 commit into from Feb 14, 2024
Merged

Remove disambiguation pages from search results #107

merged 1 commit into from Feb 14, 2024

Conversation

stephanebisson
Copy link
Contributor

Copy link
Contributor

@medied medied left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing well

@medied medied merged commit 9f4d220 into main Feb 14, 2024
1 check passed
@medied medied deleted the rm-disamb branch February 14, 2024 15:40
if ( ! data.pages ) {
const handler = ( callback ) => {
return ( data ) => {
if ( ! data.query || ! data.query.pages ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the old code used the optional chaining operator ?.. Any reason to not use it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not something we use often so I wasn't sure about browser support. I made a mental note of looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants