PictureUpload fix

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-25 18:37:31 +02:00
parent fa6df2ccd0
commit fb94c64c63
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -152,7 +152,7 @@ export default class PictureUpload extends Vue {
console.error(e); console.error(e);
} }
} }
return this.defaultImage ? this.defaultImage.url : null; return this.defaultImage?.url;
} }
onFileChanged(file: File | null): void { onFileChanged(file: File | null): void {