Simplify hasInitialData

This commit is contained in:
richard-dds 2019-08-29 16:08:55 -04:00
parent b26cd3ffae
commit 518376a1d6

View File

@ -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,