Skip to content

Commit f0663df

Browse files
committed
Merge branch 'scheduling_event_time_display' of NadiaUoM/opencast-admin-interface into main
Pull request #1199 Scheduling single event or multiple events times filed display wrong digits
2 parents 4a36b00 + 5592a1a commit f0663df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/dropDownUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Role } from "../slices/aclSlice";
55
* this file contains functions, which are needed for the searchable drop-down selections
66
*/
77

8-
export const formatTimeForDropdown = (times: {index: number, value: string}[]) => {
8+
export const formatTimeForDropdown = (times: {index: string, value: string}[]) => {
99
return times.map(({index, value}) => ({ label: value, value: index }));
1010
};
1111

src/utils/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const initArray = (numberOfElements: number) => {
3939
result = [];
4040
for (i = 0; i < numberOfElements; i++) {
4141
result.push({
42-
index: i,
42+
index: makeTwoDigits(i),
4343
value: makeTwoDigits(i),
4444
});
4545
}

0 commit comments

Comments
 (0)