Skip to content

Commit bdaf87a

Browse files
committed
update per QA to remove initial recurring events
1 parent 168ab58 commit bdaf87a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/microsoft_outlook_calendar/actions/list-events/list-events.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,14 @@ export default {
7878
},
7979
});
8080

81-
$.export("$summary", `Successfully retrieved ${value.length} event${value.length === 1
81+
const events = !this.includeRecurring
82+
? value.filter((event) => !event.recurrence)
83+
: value;
84+
85+
$.export("$summary", `Successfully retrieved ${events.length} event${events.length === 1
8286
? ""
8387
: "s"}`);
8488

85-
return value;
89+
return events;
8690
},
8791
};

0 commit comments

Comments
 (0)