Skip to content

Commit

Permalink
fix: choose language link for local dev (#9215)
Browse files Browse the repository at this point in the history
@superset-ui/connection will add protocol and host to an "endpoint" call.

`e.currentTarget.href` may return the full URL instead of the relative
url.
  • Loading branch information
Erik Ritter committed Mar 5, 2020
1 parent 969bc87 commit b1d83ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/setup/setupApp.ts
Expand Up @@ -67,7 +67,7 @@ export default function setupApp() {
) {
ev.preventDefault();
SupersetClient.get({
endpoint: ev.currentTarget.href,
url: ev.currentTarget.href,
parseMethod: null,
}).then(() => {
location.reload();
Expand Down

0 comments on commit b1d83ba

Please sign in to comment.