Simplify hasInitialData
This commit is contained in:
parent
b26cd3ffae
commit
518376a1d6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user