Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/time-resources/src/components/PlanningCalendar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

const myAcc = getCurrentAccount()
const socialStrings = myAcc.socialIds
const personalCalendar = `${myAcc.uuid}_calendar` as Ref<Calendar>

const calendarsQ = createQuery()

Expand All @@ -65,7 +66,7 @@
function update (calendars: Calendar[]): void {
q.query<Event>(
calendar.class.Event,
{ calendar: { $in: calendars.map((p) => p._id) } },
{ calendar: { $in: [personalCalendar, ...calendars.map((p) => p._id)] } },
(result) => {
raw = result
},
Expand Down Expand Up @@ -114,7 +115,6 @@
current.date = e.detail.date.getTime()
current.dueDate = new Date(e.detail.date).setMinutes(new Date(e.detail.date).getMinutes() + 30)
} else {
const _calendar = `${myAcc.uuid}_calendar` as Ref<Calendar>
const ev: WorkSlot = {
_id: dragItemId,
allDay: false,
Expand All @@ -128,7 +128,7 @@
collection: 'events',
visibility: 'public',
blockTime: true,
calendar: _calendar,
calendar: personalCalendar,
space: calendar.space.Calendar,
modifiedBy: myAcc.primarySocialId,
participants: [getCurrentEmployee()],
Expand Down
Loading