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

fix "ToLower" method invocation failure #2714

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

msartore
Copy link
Contributor

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Description

Fixed the following error by casting the content to string:
InvalidOperation at line 14824
if ($CheckBox.Value.Content.ToLower().Contains($textToSearch)
Error: Method invocation failed because [System.Windows.Controls.TextBlock] does not contain a method named 'ToLower'.

Testing

Tested against the same input given to the release version on powershell version 7.4.5

Impact

Fixes an error displayed in the powershell

Issue related to PR

  • Resolves #

Additional Information

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

@ChrisTitusTech ChrisTitusTech merged commit 8e5fcce into ChrisTitusTech:main Sep 11, 2024
1 check passed
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.

2 participants