overrideLevels as array impl instead of overrideLevel
This commit is contained in:
@ -62,8 +62,10 @@ export class ConcreteNumbering extends XmlComponent {
|
|||||||
|
|
||||||
this.root.push(new AbstractNumId(decimalNumber(options.abstractNumId)));
|
this.root.push(new AbstractNumId(decimalNumber(options.abstractNumId)));
|
||||||
|
|
||||||
if (options.overrideLevel) {
|
if (options.overrideLevels && options.overrideLevels.length) {
|
||||||
this.root.push(new LevelOverride(options.overrideLevel.num, options.overrideLevel.start));
|
for(const level of options.overrideLevels){
|
||||||
|
this.root.push(new LevelOverride(level.num, level.start));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user