Skip to content

Commit

Permalink
fix(spec-renderer): minor fix [KHCP-14300]
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Dec 4, 2024
1 parent c703c42 commit 831a7a5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
v-for="section in sectionHeadings"
:key="section"
class="section-wrapper"
:data-testid="`spec-operations-list-section-${String(section).toLowerCase().replaceAll(' ', '-')}`"
:data-testid="`spec-operations-list-section-${section.toLowerCase().replaceAll(' ', '-')}`"
>
<KCollapse
:model-value="false"
Expand All @@ -41,7 +41,7 @@
<template #trigger="{ isCollapsed, toggle }">
<OperationsListSectionHeader
:content-element-id="getSectionContentId(section)"
:data-testid="`spec-operations-list-section-${String(section).toLowerCase().replaceAll(' ', '-')}-collapse-trigger`"
:data-testid="`spec-operations-list-section-${section.toLowerCase().replaceAll(' ', '-')}-collapse-trigger`"
:description="getSectionDescription(section)"
:is-collapsed="isCollapsed"
:name="section"
Expand Down Expand Up @@ -227,7 +227,7 @@ const sectionHeadings = computed<string[]>(() => {
filteredItems.value.forEach((item: OperationListItem) => {
if (item.tag && !headings.includes(item.tag)) {
headings.push(item.tag)
headings.push(String(item.tag))
}
})
Expand Down Expand Up @@ -256,7 +256,7 @@ const isSelected = (item: OperationListItem): boolean => {
return !!s && s.path === item.path && s.method === item.method && s.operationId === item.operationId && s.tag === item.tag
}
const getSectionContentId = (section: string) => `${uid.value}-section-${String(section).toLowerCase()}`
const getSectionContentId = (section: string) => `${uid.value}-section-${section.toLowerCase()}`
const handleSelection = (item: OperationListItem) => {
if (!props.disableSelection) {
Expand Down

0 comments on commit 831a7a5

Please sign in to comment.