meta to undefined in json

This commit is contained in:
tmshv committed 2022-09-06 13:46:42 +03:00
1 parent 8c3411905c
commit ecb81f756a
1 file changed
+9 -2
+9 -2
View File
@@ -53,11 +53,18 @@ export class MetaBuilder {
build() { build() {
const image = this.buildImage() const image = this.buildImage()
const params: Record<string, string> = {}
if (this.title) {
params.title = this.title
}
if (this.description) {
params.description = this.description
}
return meta({ return meta({
...this.data, ...this.data,
...image, ...image,
title: this.title, ...params,
description: this.description,
}) })
} }