fix(add-people): remove line break from searchPeople request
Chrome has deprecated line breaks in requests. The template literal used for the searchPeople url has a line breaks. Instead of line breaking the request url, concatenate it together.
This commit is contained in:
parent
21957c8bf2
commit
1ad614e812
|
@ -12,8 +12,8 @@ export function searchPeople(serviceUrl, jwt, text) {
|
||||||
const queryTypes = '["conferenceRooms","user","room"]';
|
const queryTypes = '["conferenceRooms","user","room"]';
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
$.getJSON(`${serviceUrl}?query=${encodeURIComponent(text)}
|
$.getJSON(`${serviceUrl}?query=${encodeURIComponent(text)}`
|
||||||
&queryTypes=${queryTypes}&jwt=${jwt}`,
|
+ `&queryTypes=${queryTypes}&jwt=${jwt}`,
|
||||||
response => resolve(response)
|
response => resolve(response)
|
||||||
).fail((jqxhr, textStatus, error) =>
|
).fail((jqxhr, textStatus, error) =>
|
||||||
reject(error)
|
reject(error)
|
||||||
|
|
Loading…
Reference in New Issue