Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Mar 22, 2024
1 parent b1139ac commit 501aad3
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -200,9 +200,7 @@ export class TeamSearchService extends Service {
this.searchResultsRequests = {}
this.expandedCollections.value = []

const axiosPlatformConfig = platform.auth.axiosPlatformConfig
? platform.auth.axiosPlatformConfig()
: {}
const axiosPlatformConfig = platform.auth.axiosPlatformConfig?.() ?? {}

try {
const searchResponse = await axios.get(
Expand All @@ -211,9 +209,7 @@ export class TeamSearchService extends Service {
}/team-collection/search/${teamID}?searchQuery=${encodeURIComponent(
query
)}`,
{
...axiosPlatformConfig,
}
axiosPlatformConfig
)

if (searchResponse.status !== 200) {
Expand Down

0 comments on commit 501aad3

Please sign in to comment.