From c565750c99ba2dd79bcfbc5cbb1bbe855df27289 Mon Sep 17 00:00:00 2001 From: Caleb Date: Wed, 13 Dec 2017 19:46:04 -0700 Subject: [PATCH 1/2] Update AssetProxy.js --- src/valueObjects/AssetProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/valueObjects/AssetProxy.js b/src/valueObjects/AssetProxy.js index 73e6fffaf80c..194ad942c384 100644 --- a/src/valueObjects/AssetProxy.js +++ b/src/valueObjects/AssetProxy.js @@ -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) { From 868e57bf232e655cb9dec9dc86ea91ec5289a459 Mon Sep 17 00:00:00 2001 From: Caleb Date: Wed, 3 Jan 2018 12:40:12 -0700 Subject: [PATCH 2/2] Update AssetProxy.js --- src/valueObjects/AssetProxy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/valueObjects/AssetProxy.js b/src/valueObjects/AssetProxy.js index 194ad942c384..ffaa80f6185a 100644 --- a/src/valueObjects/AssetProxy.js +++ b/src/valueObjects/AssetProxy.js @@ -20,6 +20,7 @@ export default function AssetProxy(value, fileObj, uploaded = false, asset) { } AssetProxy.prototype.toString = function () { + // Use the deployed image path if we do not have a locally cached copy. if (this.uploaded && !this.fileObj) return this.public_path; try { return window.URL.createObjectURL(this.fileObj);