Skip to content

Commit

Permalink
Merge pull request #3181 from owid/explorer-admin-route
Browse files Browse the repository at this point in the history
🐛 use absolute URL instead of relative for allExplorers.json fetch
  • Loading branch information
ikesau authored Feb 8, 2024
2 parents 26fa7b8 + 3f16191 commit 8838c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explorerAdminClient/ExplorersListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class ExplorersIndexPage extends React.Component<{
private async fetchAllExplorers() {
const { searchInput } = this

const response = await fetch(GetAllExplorersRoute)
const response = await fetch(`/admin/${GetAllExplorersRoute}`)
const json = (await response.json()) as ExplorersRouteResponse
if (!json.success) alert(JSON.stringify(json.errorMessage))
this.needsPull = json.needsPull
Expand Down

0 comments on commit 8838c5c

Please sign in to comment.