Simplify hasInitialData
This commit is contained in:
parent
b26cd3ffae
commit
518376a1d6
@ -41,7 +41,7 @@ export default {
|
|||||||
|
|
||||||
data: function() {
|
data: function() {
|
||||||
return {
|
return {
|
||||||
hasInitialData: false,
|
hasInitialData: !!this.filename,
|
||||||
attachment: this.filename || null,
|
attachment: this.filename || null,
|
||||||
changed: false,
|
changed: false,
|
||||||
uploadError: false,
|
uploadError: false,
|
||||||
@ -57,7 +57,6 @@ export default {
|
|||||||
valid: this.hasAttachment,
|
valid: this.hasAttachment,
|
||||||
})
|
})
|
||||||
|
|
||||||
this.hasInitialData = !!this.filename
|
|
||||||
if (this.hasInitialData) {
|
if (this.hasInitialData) {
|
||||||
this.downloadLink = await this.getDownloadLink(
|
this.downloadLink = await this.getDownloadLink(
|
||||||
this.filename,
|
this.filename,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user