From 9638fbc987b84f143ca34211dc4666d96248ea2f Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 12 Feb 2018 16:23:39 -0500 Subject: [PATCH] Use `contentType` from `model` --- js/views/attachment_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 769bacf3cd..ffca0b147c 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -215,7 +215,8 @@ }); } - const {blob, contentType} = this; + const {blob} = this; + const {contentType} = this.model; this.view = new View(this.objectUrl, {blob, contentType}); this.view.$el.appendTo(this.$el); this.listenTo(this.view, 'update', this.update);