Skip to content

Commit

Permalink
Update AssetProxy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Dec 14, 2017
1 parent ba9b787 commit c565750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/valueObjects/AssetProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function AssetProxy(value, fileObj, uploaded = false, asset) {
}

AssetProxy.prototype.toString = function () {
if (this.uploaded) return this.public_path;
if (this.uploaded && !this.fileObj) return this.public_path;
try {
return window.URL.createObjectURL(this.fileObj);
} catch (error) {
Expand Down

0 comments on commit c565750

Please sign in to comment.