format document
This commit is contained in:
parent
0996e86163
commit
79ccdbf5db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue