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() {
|
||||
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({
|
||||
...this.data,
|
||||
...image,
|
||||
title: this.title,
|
||||
description: this.description,
|
||||
...params,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user