From 0f37f5c99baf8c068296c2f2a8493bcada3be316 Mon Sep 17 00:00:00 2001 From: Nassim <71079376+nas-tabchiche@users.noreply.github.com> Date: Fri, 27 Dec 2024 10:21:16 +0100 Subject: [PATCH] Fix evidence management in applied control detail (#1265) --- .../(app)/(internal)/[model=urlmodel]/[id=uuid]/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(app)/(internal)/[model=urlmodel]/[id=uuid]/+page.server.ts b/frontend/src/routes/(app)/(internal)/[model=urlmodel]/[id=uuid]/+page.server.ts index a1d709195..cb95cbcce 100644 --- a/frontend/src/routes/(app)/(internal)/[model=urlmodel]/[id=uuid]/+page.server.ts +++ b/frontend/src/routes/(app)/(internal)/[model=urlmodel]/[id=uuid]/+page.server.ts @@ -20,7 +20,7 @@ import { loadDetail } from '$lib/utils/load'; import type { PageServerLoad } from './$types'; export const load: PageServerLoad = async (event) => { - const modelInfo = getModelInfo(event.params.model + '_duplicate'); + const modelInfo = getModelInfo(event.params.model); const foreignKeys: Record = {}; if (modelInfo.foreignKeyFields) {