diff --git a/frontend/src/lib/components/document/DocumentEditLayout.svelte b/frontend/src/lib/components/document/DocumentEditLayout.svelte index 04bb203c..2e9eb343 100644 --- a/frontend/src/lib/components/document/DocumentEditLayout.svelte +++ b/frontend/src/lib/components/document/DocumentEditLayout.svelte @@ -15,6 +15,7 @@ import type { Tag } from '$lib/components/TagInput.svelte'; import type { components } from '$lib/generated/api'; type Person = components['schemas']['Person']; +type Doc = components['schemas']['Document']; let { doc, @@ -29,19 +30,7 @@ let { topbar, actionbar }: { - doc: { - id: string; - filePath?: string | null; - originalFilename?: string | null; - title?: string | null; - documentDate?: string | null; - location?: string | null; - documentLocation?: string | null; - summary?: string | null; - sender?: { id: string; displayName: string } | null; - receivers?: Person[] | null; - tags?: Tag[] | null; - }; + doc: Doc; formId: string; formAction: string; formError?: string | null;