We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a36b00 + 5592a1a commit f0663dfCopy full SHA for f0663df
src/utils/dropDownUtils.ts
@@ -5,7 +5,7 @@ import { Role } from "../slices/aclSlice";
5
* this file contains functions, which are needed for the searchable drop-down selections
6
*/
7
8
-export const formatTimeForDropdown = (times: {index: number, value: string}[]) => {
+export const formatTimeForDropdown = (times: {index: string, value: string}[]) => {
9
return times.map(({index, value}) => ({ label: value, value: index }));
10
};
11
src/utils/utils.ts
@@ -39,7 +39,7 @@ export const initArray = (numberOfElements: number) => {
39
result = [];
40
for (i = 0; i < numberOfElements; i++) {
41
result.push({
42
- index: i,
+ index: makeTwoDigits(i),
43
value: makeTwoDigits(i),
44
});
45
}
0 commit comments