From 518376a1d62c0c62f6b572003d2408b1f470f905 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Thu, 29 Aug 2019 16:08:55 -0400 Subject: [PATCH] Simplify hasInitialData --- js/components/upload_input.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/components/upload_input.js b/js/components/upload_input.js index b4927d1b..a0ad494c 100644 --- a/js/components/upload_input.js +++ b/js/components/upload_input.js @@ -41,7 +41,7 @@ export default { data: function() { return { - hasInitialData: false, + hasInitialData: !!this.filename, attachment: this.filename || null, changed: false, uploadError: false, @@ -57,7 +57,6 @@ export default { valid: this.hasAttachment, }) - this.hasInitialData = !!this.filename if (this.hasInitialData) { this.downloadLink = await this.getDownloadLink( this.filename,