mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
Фикс сверки дней.
This commit is contained in:
@@ -253,11 +253,11 @@ export class ScheduleParser {
|
|||||||
if (!cachedGroups) return affectedDays;
|
if (!cachedGroups) return affectedDays;
|
||||||
|
|
||||||
// noinspection SpellCheckingInspection
|
// noinspection SpellCheckingInspection
|
||||||
const dayEquals = (lday: DayDto | null, rday: DayDto): boolean => {
|
const dayEquals = (
|
||||||
if (
|
lday: DayDto | null,
|
||||||
rday === undefined ||
|
rday: DayDto | undefined,
|
||||||
rday.lessons.length != lday.lessons.length
|
): boolean => {
|
||||||
)
|
if (!lday || !rday || rday.lessons.length != lday.lessons.length)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (const lessonIdx in lday.lessons) {
|
for (const lessonIdx in lday.lessons) {
|
||||||
|
|||||||
Reference in New Issue
Block a user