fix: combine typeOfOccupation
Some checks failed
Build and Deploy Angular App / build (push) Failing after 1m0s
Some checks failed
Build and Deploy Angular App / build (push) Failing after 1m0s
This commit is contained in:
@ -89,7 +89,7 @@ export class TableComponent implements OnChanges {
|
||||
);
|
||||
|
||||
const groupedData = filteredData.reduce((acc, item) => {
|
||||
const key = `${item.lectureHalls}-${item.campus}-${item.discipline}-${item.professors.join(', ')}-${item.isExcludedWeeks}-${item.weeks?.join(', ') || ''}`;
|
||||
const key = `${item.typeOfOccupations.join(', ')}-${item.lectureHalls}-${item.campus}-${item.discipline}-${item.professors.join(', ')}-${item.isExcludedWeeks}-${item.weeks?.join(', ') || ''}`;
|
||||
if (!acc[key])
|
||||
acc[key] = {...item, groups: [item.group]};
|
||||
else
|
||||
|
Reference in New Issue
Block a user