DURACOM-235 Removed extra navigation that was breaking community edit behaviour

This commit is contained in:
Mattia Vianelli
2024-02-22 11:16:36 +01:00
parent 3b884fedb1
commit be452316a8

View File

@@ -66,9 +66,6 @@ export class ComcolMetadataComponent<TDomain extends Community | Collection> imp
this.dsoDataService.patch(event.dso, event.operations).pipe(getFirstCompletedRemoteData())
.subscribe(async (response: RemoteData<DSpaceObject>) => {
if (response.hasSucceeded) {
if (!newLogo && !deleteLogo) {
await this.router.navigate([this.frontendURL + event.dso.uuid]);
}
this.notificationsService.success(null, this.translate.get(`${this.type.value}.edit.notifications.success`));
} else if (response.statusCode === 403) {
this.notificationsService.error(null, this.translate.get(`${this.type.value}.edit.notifications.unauthorized`));
@@ -80,7 +77,7 @@ export class ComcolMetadataComponent<TDomain extends Community | Collection> imp
}
/**
* Navigate to the home page of the object
* Navigate to the relative DSO page
*/
navigateToHomePage() {
this.dsoRD$.pipe(