|
|
@@ -83,11 +83,14 @@ function onLogoChange(file: File) {
|
|
|
}
|
|
|
|
|
|
function onLogoDelete() {
|
|
|
- if (!report.value) {
|
|
|
+ if (!report.value || !report.value.logoPath) {
|
|
|
return;
|
|
|
}
|
|
|
logoService.remove(report.value.id).then((resp) => {
|
|
|
if (resp) {
|
|
|
+ if (report.value) {
|
|
|
+ report.value.logoPath = ''
|
|
|
+ }
|
|
|
logoUrl.value = undefined
|
|
|
}
|
|
|
})
|