format document

This commit is contained in:
Abderahman88 2020-10-27 20:07:31 +01:00
parent 0996e86163
commit 79ccdbf5db
1 changed files with 22 additions and 22 deletions

View File

@ -347,7 +347,7 @@ export default class GraphCalendar extends React.Component<IGraphCalendarProps,
var count = 0;
events.map((item: any) => {
let apiUrl: string = `/groups/${this.state.groupId}/events/${item.id}/instances?startDateTime=${startDate.toISOString()}&endDateTime=${endDate.toISOString()}`;
if(this._isPersonalTab()) {
if (this._isPersonalTab()) {
apiUrl = `/me/events/${item.id}/instances?startDateTime=${startDate.toISOString()}&endDateTime=${endDate.toISOString()}`;
}
client
@ -382,7 +382,7 @@ export default class GraphCalendar extends React.Component<IGraphCalendarProps,
.getClient()
.then((client: MSGraphClient): void => {
let apiUrl: string = `/groups/${this.state.groupId}/events`;
if(this._isPersonalTab()) {
if (this._isPersonalTab()) {
apiUrl = '/me/events';
}
client