add values checks to remaining file/table code

This commit is contained in:
Tom Hunkapiller
2021-05-24 12:00:04 +03:00
parent ce2a0fb864
commit 4466145d00
7 changed files with 93 additions and 41 deletions

View File

@ -39,8 +39,8 @@ export class Shading extends XmlComponent {
super("w:shd");
this.root.push(
new ShadingAttributes({
fill: fill === undefined ? fill : hexColorValue(fill),
color: color === undefined ? color : hexColorValue(color),
fill: fill === undefined ? undefined : hexColorValue(fill),
color: color === undefined ? undefined : hexColorValue(color),
val,
}),
);