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

Add null checks for undefined include/exclude patterns in search view #25336

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

corivera
Copy link
Member

Fixes #24877

The search bar used in the notebook viewlet overrides the default search view rendering behavior, which means the include/exclude pattern objects in the base class never get created. This was causing undefined errors when trying to open the notebook find results in the editor, so the fix here was just to add some optional chaining operators. We weren't using include & exclude patterns for notebook searches, so there's no issue leaving those as undefined. I checked the console log and no errors were getting reported from passing undefined values either.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7938152331

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 41.757%

Totals Coverage Status
Change from base Build 7937599012: 0.0%
Covered Lines: 30827
Relevant Lines: 69082

💛 - Coveralls

@corivera corivera merged commit a9afb63 into main Feb 20, 2024
15 checks passed
@corivera corivera deleted the corivera/editorSearch branch February 20, 2024 21:02
ssreerama added a commit that referenced this pull request Feb 22, 2024
* Add null checks for undefined include/exclude patterns in search view (#25336) (#25354)

* Add write permissions to PR labelling action (#25356) (#25359)

* Updating STS new version (#25357)

* vbump sql projects after insiders release to 1.4.2

* vbump sql projects after insiders release to 1.4.2

---------

Co-authored-by: Cory Rivera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Open in editor" link in Notebooks search results doesn't work
3 participants