bugfix in path. Closes #219

This commit is contained in:
Cássio Zen 2017-01-18 18:26:01 -02:00
parent bd6b4eeeae
commit bd13a847a7

View File

@ -14,7 +14,7 @@ export default function AssetProxy(value, fileObj, uploaded = false) {
this.fileObj = fileObj;
this.uploaded = uploaded;
this.sha = null;
this.path = config.media_folder && !uploaded ? `${ config.get('media_folder') }/${ value }` : value;
this.path = config.get('media_folder') && !uploaded ? resolvePath(value, config.get('media_folder')) : value;
this.public_path = !uploaded ? resolvePath(value, config.get('public_folder')) : value;
}