Skip to content

Commit

Permalink
Further cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFomina committed May 15, 2022
1 parent ebe55e6 commit 0ddc09d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/modules/toolbar/conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,13 @@ export default class ConversionToolbar extends Module<ConversionToolbarNodes> {
}

if (Array.isArray(tool.toolbox)) {
tool.toolbox.forEach((configItem, i) => this.addToolIfValid(name, configItem, (tool.toolbox as ToolboxConfig[]).slice(0, i)));
tool.toolbox.forEach((configItem, i) =>
this.addToolIfValid(
name,
configItem,
(tool.toolbox as ToolboxConfig[]).slice(0, i)
)
);
} else {
this.addToolIfValid(name, tool.toolbox);
}
Expand Down

0 comments on commit 0ddc09d

Please sign in to comment.