Skip to content

Commit

Permalink
Fixed issue with missing props
Browse files Browse the repository at this point in the history
  • Loading branch information
VolodymyrBaydalka committed Jan 29, 2023
1 parent a3ea7c5 commit 3f41af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/document-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from './document/dom';
import { DocumentElement } from './document/document';
import { WmlParagraph, parseParagraphProperties, parseParagraphProperty } from './document/paragraph';
import { parseSectionProperties } from './document/section';
import { parseSectionProperties, SectionProperties } from './document/section';
import xml from './parser/xml-parser';
import { parseRunProperties, WmlRun } from './document/run';
import { parseBookmarkEnd, parseBookmarkStart } from './document/bookmarks';
Expand Down Expand Up @@ -78,7 +78,7 @@ export class DocumentParser {
return {
type: DomType.Document,
children: this.parseBodyElements(xbody),
props: sectPr ? parseSectionProperties(sectPr, xml) : null,
props: sectPr ? parseSectionProperties(sectPr, xml) : {} as SectionProperties,
cssStyle: background ? this.parseBackground(background) : {},
};
}
Expand Down

0 comments on commit 3f41af7

Please sign in to comment.