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(spec-renderer): tolowercase is not a function [KHCP-14300] #1833

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

portikM
Copy link
Member

@portikM portikM commented Dec 4, 2024

@portikM portikM self-assigned this Dec 4, 2024
@portikM portikM requested review from a team as code owners December 4, 2024 18:16
@portikM portikM enabled auto-merge (squash) December 4, 2024 18:16
@@ -32,7 +32,7 @@
v-for="section in sectionHeadings"
:key="section"
class="section-wrapper"
:data-testid="`spec-operations-list-section-${section.toLowerCase().replaceAll(' ', '-')}`"
:data-testid="`spec-operations-list-section-${String(section).toLowerCase().replaceAll(' ', '-')}`"
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand what this fixes? If section is undefined, you're going to be trimming a string of 'undefined'

Copy link
Member Author

Choose a reason for hiding this comment

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

It shouldn't be undefined as in sectionHeadings computed checks whether it's not falsy here:

Copy link
Member

Choose a reason for hiding this comment

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

Ok, so then why the need to wrap in String ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure how this error happened but it happened. I reworked my fix a bit

@portikM portikM requested a review from adamdehaven December 4, 2024 21:40
@portikM portikM merged commit 60894e8 into main Dec 4, 2024
9 checks passed
@portikM portikM deleted the fix/khcp-14300-tolowercase-is-not-function branch December 4, 2024 21:58
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