Skip to content

Commit

Permalink
Merge pull request #166 from rocjs/fix/manage-data-missing-in-template
Browse files Browse the repository at this point in the history
Fixes problem when data is missing in template
  • Loading branch information
dlmr authored Apr 5, 2017
2 parents 0a86d50 + 229727d commit 9543440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/init/generateTemplate/collect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default async function(data, metadata, done) {
export default async function(data = {}, metadata, done) {
const keys = Object.getOwnPropertyNames(data);

for (const key of keys) {
Expand Down

0 comments on commit 9543440

Please sign in to comment.