Skip to content

Commit ce6b1e5

Browse files
committed
small changes
1 parent 43bd09b commit ce6b1e5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/modals/EventModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ function validate(event: CalendarEvent): boolean {
275275
errors.badUntilDate = true;
276276
return false;
277277
}
278-
if (event.repeat.until.diff(event.from).as('milliseconds') < 0) {
278+
if (event.repeat.until.startOf('day') < event.from.startOf('day')) {
279279
errors.badUntilDate = true;
280280
return false;
281281
}

src/services/calendarFilters.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ export function useCalendarFilters() {
3737
continue;
3838
}
3939

40+
if (cal.tags == null) {
41+
out[cal.name] = [];
42+
continue;
43+
}
44+
4045
const tagIds = cal.tags.flatMap((tag) => {
4146
if (!tag.id || hiddenTags.has(tagKey(cal.name, tag.id))) {
4247
return [];

0 commit comments

Comments
 (0)