Skip to content

Commit

Permalink
Fix content undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 4, 2020
1 parent 3e05726 commit 4a88c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function meta() {
if (is(node, 'head')) {
visit(node, (child) => {
if (is(child, 'meta')) {
const { name, property, content } = child.properties
const { name, property, content = '' } = child.properties
if (name === 'description') {
file.data.description = content
} else if (name === 'keywords') {
Expand Down

0 comments on commit 4a88c45

Please sign in to comment.