You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by er...@apache.org on 2020/03/05 01:08:41 UTC
[incubator-superset] branch master updated: fix: choose language
link for local dev (#9215)
This is an automated email from the ASF dual-hosted git repository.
erikrit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new b1d83ba fix: choose language link for local dev (#9215)
b1d83ba is described below
commit b1d83ba8d69d99ca960a865c1e1f6ecf32a4f6cd
Author: Erik Ritter <er...@airbnb.com>
AuthorDate: Wed Mar 4 17:08:23 2020 -0800
fix: choose language link for local dev (#9215)
@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.
---
superset-frontend/src/setup/setupApp.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/src/setup/setupApp.ts b/superset-frontend/src/setup/setupApp.ts
index d1c3dd9..ed37e1f 100644
--- a/superset-frontend/src/setup/setupApp.ts
+++ b/superset-frontend/src/setup/setupApp.ts
@@ -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();