mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
fix: timetable dates cannot be removed
This commit is contained in:
committed by
Rainer Killinger
parent
29585faff6
commit
9242438132
@@ -21,7 +21,7 @@ export function groupBy<T>(
|
||||
group: (item: T) => string | undefined,
|
||||
): Record<string, T[]> {
|
||||
return collection.reduce((accumulator: Record<string, T[]>, item) => {
|
||||
const key = group(item) || '';
|
||||
const key = group(item) ?? '';
|
||||
accumulator[key] = accumulator[key] ?? [];
|
||||
accumulator[key].push(item);
|
||||
return accumulator;
|
||||
|
||||
Reference in New Issue
Block a user