Skip to content

Commit

Permalink
fix: reading 'isBinary' of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
epaminond committed Apr 16, 2018
1 parent 4914e89 commit b187378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "botpress",
"description": "The world's first CMS for bots. Easily create, manage and extend chatbots.",
"version": "10.0.12",
"version": "10.0.13",
"author": "Botpress",
"bin": {
"bp": "./bin/botpress",
Expand Down
2 changes: 1 addition & 1 deletion src/ghost-content/transparent.js
Expand Up @@ -44,7 +44,7 @@ module.exports = ({ logger, projectLocation }) => {
readFile: (folder, file) => {
const { folderPath, normalizedFolderName } = normalizeFolder(folder)
const filePath = path.join(folderPath, file)
const { isBinary = false } = folderOptions[normalizedFolderName]
const isBinary = (folderOptions[normalizedFolderName] || {}).isBinary || false
return fs
.readFileAsync(filePath, isBinary ? null : 'utf8')
.catch({ code: 'ENOENT' }, () => null)
Expand Down

0 comments on commit b187378

Please sign in to comment.