Skip to content

Commit

Permalink
refactor: escape characters in search query
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Mar 19, 2024
1 parent 2592a11 commit 7f71887
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -201,7 +201,9 @@ export class TeamSearchService extends Service {

try {
const searchResponse = await axios.get(
`${this.endpoint}/team-collection/search/${teamID}/${query}`,
`${this.endpoint}/team-collection/search/${teamID}/${encodeURIComponent(
query
)}}`,
{
withCredentials: true,
}
Expand Down

0 comments on commit 7f71887

Please sign in to comment.