Skip to content

Commit e6a662b

Browse files
fix: copilot review 4
1 parent 107d2e6 commit e6a662b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/versions/getVersionsColors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const getVersionsDataMap = (versionsMap: VersionsMap) => {
143143
currentColorIndex = (currentColorIndex + 1) % COLORS.length;
144144

145145
versionsDataMap.set(item.version, {
146-
// Use fisrt color for major
146+
// Use first color for major
147147
color: COLORS[currentColorIndex][0],
148148
majorIndex: currentColorIndex,
149149
minorIndex: 0,

src/utils/versions/sortVersions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {PreparedVersion} from './types';
44
/**
55
* Sorts cluster versions according to the following rules:
66
* 1. First by majorIndex in ascending order (lower index first)
7-
* - In embedded versions higher version numbers typically have lower indices (e.g., v3.0.0: index 0, v2.0.0: index 1, v1.0.0: index 2)
7+
* - In single-cluster versions higher version numbers typically have lower indices (e.g., v3.0.0: index 0, v2.0.0: index 1, v1.0.0: index 2)
88
* - In multi-cluster version indices may be provided by backend with no specific rule, but we use the same sorting for consistency
99
* - Versions with undefined majorIndex come last
1010
* 2. Then by minorIndex in ascending order (lower index first) when majorIndex is the same

0 commit comments

Comments
 (0)