Skip to content

Commit

Permalink
Make empty regions resolving independent of content api #6548
Browse files Browse the repository at this point in the history
  • Loading branch information
ashklianko committed Jul 18, 2023
1 parent 8686c9a commit 2020955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export class Regions

let other = <Regions>o;

let thisRegions = this.getRegions();
let otherRegions = other.getRegions();
let thisRegions = this.getRegions()?.filter((region: Region) => !region.isEmpty());
let otherRegions = other.getRegions()?.filter((region: Region) => !region.isEmpty());

if (!ObjectHelper.arrayEquals(thisRegions, otherRegions)) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2282,7 +2282,7 @@ export class ContentWizardPanel

private assembleViewedPage(): Page {
return (this.getPersistedItem().getPage() && !this.isRenderable()) ?
this.getPersistedItem().getPage() : PageHelper.getPageWithoutEmptyRegions(this.getLivePanel()?.getPage());
this.getPersistedItem().getPage() : this.getLivePanel()?.getPage();
}

private resolveContentNameForUpdateRequest(): ContentName {
Expand Down

0 comments on commit 2020955

Please sign in to comment.