Skip to content

Commit

Permalink
fix: handle null case for new-post-path filter
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 29, 2019
1 parent c8fee53 commit 330d88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/filter/new_post_path.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function newPostPathFilter(data = {}, replace) {
}

target = join(postDir, permalink.stringify(
Object.assign(permalinkDefaults, filenameData)
Object.assign({}, permalinkDefaults, filenameData)
));
}
}
Expand Down

0 comments on commit 330d88b

Please sign in to comment.