Hide empty headers on index (close #125)

This commit is contained in:
Petr Sloup
2017-03-14 16:02:54 +01:00
parent b93bc5fadc
commit 37386bfb29
2 changed files with 76 additions and 72 deletions

View File

@@ -309,8 +309,8 @@ module.exports = function(opts, callback) {
}
});
return {
styles: styles,
data: data
styles: Object.keys(styles).length ? styles : null,
data: Object.keys(data).length ? data : null
};
});