Skip to content

Commit

Permalink
Merge pull request #1150 from pnp/bug/1149-location-picker-suggestions
Browse files Browse the repository at this point in the history
Bug/1149 location picker suggestions
  • Loading branch information
joelfmrodrigues committed Mar 13, 2022
2 parents 1b7052c + 5996f26 commit 59d8174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.JSON
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"SharePoint Framework v1.14.0 support"
],
"fixes": [
"`FilePicker`: `defaultFolderAbsolutePath` doesn't work with `webAbsoluteUrl` [#1129](https://github.com/pnp/sp-dev-fx-controls-react/issues/1129)"
"`FilePicker`: `defaultFolderAbsolutePath` doesn't work with `webAbsoluteUrl` [#1129](https://github.com/pnp/sp-dev-fx-controls-react/issues/1129)",
"`LocationPicker`: Location picker not resolving locations [#1149](https://github.com/pnp/sp-dev-fx-controls-react/issues/1149)"
]
},
"contributors": [
Expand Down
5 changes: 2 additions & 3 deletions src/controls/locationPicker/LocationPicker.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { ILocationPickerProps, ILocationPickerState, Mode, ILocationBoxOption, ILocationPickerItem } from './ILocationPicker';
import styles from './LocationPicker.module.scss';
import { SPHttpClient, ISPHttpClientOptions, SPHttpClientResponse, AadHttpClient } from '@microsoft/sp-http';
import { SPHttpClient, ISPHttpClientOptions, SPHttpClientResponse, HttpClient, HttpClientResponse } from '@microsoft/sp-http';
import { Text } from 'office-ui-fabric-react/lib/Text';
import { Persona, PersonaSize } from 'office-ui-fabric-react/lib/Persona';
import { ComboBox } from 'office-ui-fabric-react/lib/ComboBox';
Expand Down Expand Up @@ -276,8 +276,7 @@ export class LocationPicker extends React.Component<ILocationPickerProps, ILocat
body: `{"QueryConstraint":{"Query":"${searchText}"},"LocationProvider":32,"BingMarket":"en-IN"}`,
headers: requestHeaders
};
let client1: AadHttpClient = await this.props.context.aadHttpClientFactory.getClient("https://outlook.office365.com");
let response1 = await client1.post("https://outlook.office365.com/SchedulingB2/api/v1.0/me/findmeetinglocations", AadHttpClient.configurations.v1, spOpts);
let response1: HttpClientResponse = await this.props.context.httpClient.post("https://outlook.office365.com/SchedulingB2/api/v1.0/me/findmeetinglocations", HttpClient.configurations.v1, spOpts);
let json = await response1.json();


Expand Down

0 comments on commit 59d8174

Please sign in to comment.