meta to undefined in json
This commit is contained in:
1 parent
8c3411905c
commit
ecb81f756a
1 file changed
+9
-2
+9
-2
@@ -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,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user