Skip to content

Commit b169694

Browse files
committed
Resolving merge conflict
2 parents 8d35158 + 2df1b60 commit b169694

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

Lab.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Update the default web part to pass into the React component an instance of the
238238
.api('/me/photo/$value')
239239
.responseType('blob')
240240
.get((err: any, photoResponse: any, rawResponse: any) => {
241-
const blobUrl = window.URL.createObjectURL(rawResponse.xhr.response);
241+
const blobUrl = window.URL.createObjectURL(photoResponse);
242242
this.setState({ image: blobUrl });
243243
});
244244
}
@@ -333,17 +333,6 @@ The last step before testing is to notify SharePoint that upon deployment to pro
333333
334334
![Screenshot of the SharePoint Online Pages library](./Images/graph-test-01.png)
335335
336-
*If you haven't cookied the Azure AD authentication process continue with the test by skipping the next section to add the web part to the page.*
337-
338-
1. Setup environment to test the from the local webserver and hosted workbench:
339-
1. In the command prompt for the project, execute the following command to start the local web server:
340-
341-
```shell
342-
gulp serve --nobrowser
343-
```
344-
345-
1. In a browser, navigate to one of your SharePoint Online site's hosted workbench located at **/_layouts/15/workbench.aspx**
346-
347336
1. Add the web part to the page and test:
348337
1. In the browser, select the Web part icon button to open the list of available web parts:
349338
@@ -359,6 +348,15 @@ The last step before testing is to notify SharePoint that upon deployment to pro
359348
360349
>Note: If you have multiple identities authenticated in the browser session the web part will fail as it doesn't know which identity to authorize.
361350
351+
1. Setup environment to test the from the local webserver and hosted workbench:
352+
1. In the command prompt for the project, execute the following command to start the local web server:
353+
354+
```shell
355+
gulp serve --nobrowser
356+
```
357+
358+
1. In a browser, navigate to one of your SharePoint Online site's hosted workbench located at **/_layouts/15/workbench.aspx**
359+
362360
## Exercise 2: Show calendar events from Microsoft Graph in SPFx client-side web part
363361
364362
In this exercise you add a client-side web part that uses React, [Fabric React](https://developer.microsoft.com/fabric) and the Microsoft Graph to an existing SPFx project that will display a list of the current user's calendar events using the [List](https://developer.microsoft.com/fabric#/components/list) component.
@@ -438,7 +436,7 @@ Update the default web part to pass into the React component an instance of the
438436
```
439437
440438
1. Create a new interface that will keep track of the component's state:
441-
1. Create a new file **IGraphEventsListState.ts** and save it to the folder: **src\webparts\graphEventsList\components\\**.
439+
1. Create a new file **IGraphEventsListState.ts** and save it to the folder: **src\webparts\graphEventsList\components**.
442440
1. Add the following code to define a new state object that will be used by the component:
443441
444442
```ts

0 commit comments

Comments
 (0)