diff --git a/src/dom_components/view/ComponentImageView.js b/src/dom_components/view/ComponentImageView.js index 2bc6fe9c5..4fc8927e8 100644 --- a/src/dom_components/view/ComponentImageView.js +++ b/src/dom_components/view/ComponentImageView.js @@ -18,10 +18,13 @@ module.exports = ComponentView.extend({ const config = this.config; config.modal && (this.modal = config.modal); config.am && (this.am = config.am); - this.uploadFile(); + this.fetchFile(); }, - uploadFile() { + /** + * Fetch file if exists + */ + fetchFile() { const model = this.model; const file = model.get('file');