diff --git a/src/lib/meta.ts b/src/lib/meta.ts index f0a84303..4fd6ceb2 100644 --- a/src/lib/meta.ts +++ b/src/lib/meta.ts @@ -25,10 +25,10 @@ export function meta(props: Partial): IMeta { } export class MetaBuilder { - private image: Pic - private title: string - private description: string - private data: Partial + private image?: Pic + private title?: string + private description?: string + private data?: Partial setData(param: Partial) { this.data = param @@ -56,8 +56,8 @@ export class MetaBuilder { return meta({ ...this.data, ...image, - title: this.title ?? null, - description: this.description ?? null, + title: this.title, + description: this.description, }) }