Skip to content

Commit 1ac3105

Browse files
committed
Bug fix MTA-1944
Signed-off-by: Shveta Sachdeva <[email protected]>
1 parent 8c375b6 commit 1ac3105

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

client/src/app/components/questionnaire-summary/questionnaire-summary.tsx

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ import {
1111
PageSectionVariants,
1212
Breadcrumb,
1313
BreadcrumbItem,
14-
Button,
1514
Text,
1615
} from "@patternfly/react-core";
17-
import AngleLeftIcon from "@patternfly/react-icons/dist/esm/icons/angle-left-icon";
1816
import { Link } from "react-router-dom";
1917
import { Paths } from "@app/Paths";
2018
import { ConditionalRender } from "@app/components/ConditionalRender";
@@ -68,8 +66,8 @@ const QuestionnaireSummary: React.FC<QuestionnaireSummaryProps> = ({
6866
sections: summaryData?.sections?.map((section) => ({
6967
...section,
7068
questions: section.questions.filter(({ text, explanation }) =>
71-
[text, explanation].some(
72-
(text) => text?.toLowerCase().includes(searchValue.toLowerCase())
69+
[text, explanation].some((text) =>
70+
text?.toLowerCase().includes(searchValue.toLowerCase())
7371
)
7472
),
7573
})),
@@ -140,25 +138,6 @@ const QuestionnaireSummary: React.FC<QuestionnaireSummaryProps> = ({
140138
</ToolbarItem>
141139
</ToolbarContent>
142140
</Toolbar>
143-
144-
<Link
145-
to={
146-
summaryType === SummaryType.Assessment
147-
? isArchetype
148-
? formatPath(Paths.archetypeAssessmentActions, {
149-
archetypeId: (summaryData as Assessment)?.archetype?.id,
150-
})
151-
: formatPath(Paths.applicationAssessmentActions, {
152-
applicationId: (summaryData as Assessment)?.application
153-
?.id,
154-
})
155-
: Paths.assessment
156-
}
157-
>
158-
<Button variant="link" icon={<AngleLeftIcon />}>
159-
Back to {summaryType.toLowerCase()}
160-
</Button>
161-
</Link>
162141
<div className="tabs-vertical-container">
163142
<Tabs
164143
activeKey={activeSectionIndex}

0 commit comments

Comments
 (0)