From 10ae3825a4cc508b44a9da0370e89c5e9972bc4c Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Fri, 29 Nov 2024 16:20:42 +0100 Subject: [PATCH] fix: flash mode --- .../compliance-assessments/[id=uuid]/flash-mode/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/flash-mode/+page.svelte b/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/flash-mode/+page.svelte index 76913b580..8b0dae806 100644 --- a/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/flash-mode/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/flash-mode/+page.svelte @@ -26,7 +26,7 @@ const requirementHashmap = Object.fromEntries( data.requirements.map((requirement) => [requirement.id, requirement]) ); - $: requirement = requirementHashmap[currentRequirementAssessment.requirement]; + $: requirement = requirementHashmap[currentRequirementAssessment.requirement.id]; $: parent = data.requirements.find((req) => req.urn === requirement.parent_urn); $: title = requirement.display_short