fix: sort weeks
This commit is contained in:
parent
6450acf6a3
commit
80a7e71b84
@ -106,7 +106,7 @@ export class TableComponent implements OnChanges {
|
|||||||
else
|
else
|
||||||
this.backupDisciplines[item.disciplineId] = item.discipline;
|
this.backupDisciplines[item.disciplineId] = item.discipline;
|
||||||
|
|
||||||
item.discipline = `${item.isExcludedWeeks ? 'кр.' : 'н.'} ${item.weeks.join(', ')} ${item.discipline}`;
|
item.discipline = `${item.isExcludedWeeks ? 'кр.' : ''} ${item.weeks.sort((x, y) => x - y).join(', ')} н. ${item.discipline}`;
|
||||||
} else if (this.backupDisciplines[item.disciplineId])
|
} else if (this.backupDisciplines[item.disciplineId])
|
||||||
item.discipline = this.backupDisciplines[item.disciplineId];
|
item.discipline = this.backupDisciplines[item.disciplineId];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user