Skip to content

Commit be45231

Browse files
author
Mattia Vianelli
committed
DURACOM-235 Removed extra navigation that was breaking community edit behaviour
1 parent 3b884fe commit be45231

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/app/shared/comcol/comcol-forms/edit-comcol-page/comcol-metadata/comcol-metadata.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ export class ComcolMetadataComponent<TDomain extends Community | Collection> imp
6666
this.dsoDataService.patch(event.dso, event.operations).pipe(getFirstCompletedRemoteData())
6767
.subscribe(async (response: RemoteData<DSpaceObject>) => {
6868
if (response.hasSucceeded) {
69-
if (!newLogo && !deleteLogo) {
70-
await this.router.navigate([this.frontendURL + event.dso.uuid]);
71-
}
7269
this.notificationsService.success(null, this.translate.get(`${this.type.value}.edit.notifications.success`));
7370
} else if (response.statusCode === 403) {
7471
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
8077
}
8178

8279
/**
83-
* Navigate to the home page of the object
80+
* Navigate to the relative DSO page
8481
*/
8582
navigateToHomePage() {
8683
this.dsoRD$.pipe(

0 commit comments

Comments
 (0)