diff --git a/package-lock.json b/package-lock.json index f0ab84e16b..4f169b1e45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "dotcms-ui", - "version": "20.11.0", + "version": "21.01.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.spec.ts b/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.spec.ts index faee03712e..2885c4a5dc 100644 --- a/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.spec.ts +++ b/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.spec.ts @@ -157,7 +157,10 @@ describe('DotEditLayoutComponent', () => { expect(dotGlobalMessageService.success).toHaveBeenCalledWith('Saved'); expect(dotGlobalMessageService.error).not.toHaveBeenCalled(); - expect(dotPageLayoutService.save).toHaveBeenCalledWith('123', fakeLayout); + expect(dotPageLayoutService.save).toHaveBeenCalledWith('123', { + ...fakeLayout, + title: null + }); expect(dotTemplateContainersCacheService.set).toHaveBeenCalledWith({ '0': { type: 'containers', diff --git a/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.ts b/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.ts index 0936c8fd0d..001bda38d8 100644 --- a/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.ts +++ b/src/app/portlets/dot-edit-page/layout/dot-edit-layout/dot-edit-layout.component.ts @@ -71,7 +71,11 @@ export class DotEditLayoutComponent implements OnInit { ); this.dotPageLayoutService - .save(this.pageState.page.identifier, value) + .save(this.pageState.page.identifier, { + ...value, + // To save a layout and no a template the title should be null + title: null + }) .pipe(take(1)) .subscribe( (updatedPage: DotPageRender) => {