Skip to content

Commit

Permalink
Fix frontmatter formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Dec 20, 2017
1 parent 5b2aae2 commit d20dc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Backend {
return (entry) => {
const format = resolveFormat(collectionOrEntity, entry);
if (entry && entry.raw !== undefined) {
const data = (format && attempt(format.fromFile.bind(null, entry.raw))) || {};
const data = (format && attempt(format.fromFile.bind(format, entry.raw))) || {};
if (isError(data)) console.error(data);
return Object.assign(entry, { data: isError(data) ? {} : data });
}
Expand Down

0 comments on commit d20dc8e

Please sign in to comment.