Skip to content

Commit 8657ea9

Browse files
add web absolute url variable to the request
1 parent d995939 commit 8657ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/peoplepicker/PeoplePickerComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
5555
public componentWillMount(): void {
5656
if (Environment.type === EnvironmentType.Local) {
5757
// local mode
58-
this._loadLocalWorkbenchUsers();
58+
this._thisLoadUsers();
5959
} else {
6060
// online mode
6161
// Load the users
@@ -145,7 +145,7 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
145145

146146
const webAbsoluteUrl = this.props.webAbsoluteUrl || this.props.context.pageContext.web.absoluteUrl;
147147
// Create the rest API
148-
const restApi = `${this.props.context.pageContext.web.absoluteUrl}${stringVal}`;
148+
const restApi = `${webAbsoluteUrl}${stringVal}`;
149149

150150
try {
151151
// Call the API endpoint

0 commit comments

Comments
 (0)