diff --git a/app/src/frontend/building/data-containers/category-view-props.ts b/app/src/frontend/building/data-containers/category-view-props.ts index f8d3d256..c80504b3 100644 --- a/app/src/frontend/building/data-containers/category-view-props.ts +++ b/app/src/frontend/building/data-containers/category-view-props.ts @@ -19,12 +19,14 @@ function initCopyProps(options?: Partial): CopyProps { }; } +const defaultCopyProps: CopyProps = initCopyProps(); + interface CategoryViewProps { intro: string; building: Building; mode: 'view' | 'edit' | 'multi-edit'; edited: boolean; - copy: CopyProps; + copy: defaultCopyProps; onChange: (key: string, value: any) => void; onVerify: (slug: string, verify: boolean, x: number, y: number) => void;