aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/documents.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/documents.js b/lib/documents.js
index f1ce08b..986cd9c 100644
--- a/lib/documents.js
+++ b/lib/documents.js
@@ -10,7 +10,7 @@ function Paragraph(children, properties) {
return {
type: "paragraph",
children: children,
- styleName: properties.styleName
+ styleName: properties.styleName || null
};
}
@@ -19,7 +19,7 @@ function Run(children, properties) {
return {
type: "run",
children: children,
- styleName: properties.styleName,
+ styleName: properties.styleName || null,
isBold: properties.isBold,
isItalic: properties.isItalic
};