65240: ComCol logo caching issue fix

This commit is contained in:
Kristof De Langhe
2019-10-23 10:59:14 +02:00
parent 1fafc3a5d5
commit 19a2ae6ecc
2 changed files with 6 additions and 7 deletions

View File

@@ -182,7 +182,7 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit, OnDe
});
this.submitForm.emit({
dso: updatedDSO,
uploader: this.uploaderComponent.uploader
uploader: hasValue(this.uploaderComponent) ? this.uploaderComponent.uploader : undefined
});
}
@@ -221,7 +221,7 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit, OnDe
errorResponse.errorMessage
);
}
this.refreshCache();
(this.dso as any).logo = undefined;
});
}
}
@@ -230,7 +230,6 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit, OnDe
* Refresh the object's cache to ensure the latest version
*/
private refreshCache() {
(this.dso as any).logo = undefined;
this.requestService.removeByHrefSubstring(this.dso.self);
this.objectCache.remove(this.dso.self);
}