Skip to content

Commit

Permalink
workaround for cms site object in defaultProjection
Browse files Browse the repository at this point in the history
  • Loading branch information
floriangantner committed Nov 9, 2023
1 parent 6442528 commit c353ce9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ export class EditCmsMetadataComponent implements OnInit {
this.siteService.patch(this.site, operations).pipe(getFirstCompletedRemoteData())
.subscribe((restResponse) => {
if (restResponse.hasSucceeded) {
this.site = restResponse.payload;
// this.site = restResponse.payload;
this.siteService.find().subscribe((site) => {
this.site = site;
});
this.notificationsService.success(this.translateService.get('admin.edit-cms-metadata.success'));
this.selectedMetadata = undefined;
this.editMode.next(false);
Expand Down

0 comments on commit c353ce9

Please sign in to comment.