Skip to content

Commit

Permalink
fix ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
camueller committed Nov 29, 2023
1 parent df0c24c commit 036a13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/angular/src/app/shared/days-of-week.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class DaysOfWeek {

public static getDows(translate: TranslateService, includedHoliday = true): Observable<DayOfWeek[]> {
if (! DaysOfWeek.subject) {
const filteredDows = DaysOfWeek.daysOfWeek.filter(dow => dow.id !== 8);
const filteredDows = DaysOfWeek.daysOfWeek.filter(dow => includedHoliday || dow.id !== 8);
DaysOfWeek.subject = new BehaviorSubject(DaysOfWeek.daysOfWeek);
const keys = filteredDows.map(dayOfWeek => dayOfWeek.name);
translate.get(keys).subscribe(
Expand Down

0 comments on commit 036a13a

Please sign in to comment.