Skip to content

Commit

Permalink
fix: The path for a single reference path was not complete
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Jul 13, 2017
1 parent 688503e commit cbe330a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cms/reference/reference.js
Expand Up @@ -11,7 +11,7 @@ export function getFiles(name = '') {
const pathToReferences = path.join(config.root, config.reference.url)
let res = {}

if(name !== '') res[name] = cmsData.file.get(name)
if(name !== '') res[name] = cmsData.file.get(path.join(pathToReferences, name))
else {
const files = coreUtils.file.getFilesSync(pathToReferences, true, '.json')
Array.prototype.forEach.call(files, (pathFile) => {
Expand Down

0 comments on commit cbe330a

Please sign in to comment.