Skip to content
Snippets Groups Projects
Commit bb965225 authored by rhenck's avatar rhenck
Browse files

Add initial section to newly created page

parent bdbf6eb1
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ export class UnitService {
addPage(): void {
const newPage = UnitFactory.createUnitPage();
newPage.sections.push(UnitFactory.createUnitPageSection());
this._unit.value.pages.push(newPage);
this._pages.push(new BehaviorSubject(newPage as UnitPage));
this._unit.next(this._unit.value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment