Skip to content

Commit 3b28afa

Browse files
committed
clean
1 parent cf90cca commit 3b28afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const getBaseVoltagesCssVars = (theme: string): Record<string, Record<str
3636
const vlStyleClassName = `.sld-${interval.name}, .nad-${interval.name}`;
3737
css[vlStyleClassName] = { '--vl-color': themeColors.default };
3838

39-
for (let i = 1; i <= 9; i++) {
39+
for (let i = 1; i < Object.keys(themeColors).length; i++) {
4040
const busColor = themeColors[`bus-${i}`];
4141
if (!busColor) continue;
4242
const busStyleClassName = `.sld-${interval.name}.sld-bus-${i}, .nad-${interval.name}.nad-bus-${i}`;

0 commit comments

Comments
 (0)