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) {