Skip to content

Commit

Permalink
fix(embedded sdk): Remove trailing slash from passed superset domain …
Browse files Browse the repository at this point in the history
…if there is one (apache#25020)
  • Loading branch information
jfrag1 committed Aug 25, 2023
1 parent 2aa200e commit 04fb47a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions superset-embedded-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion superset-embedded-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/embedded-sdk",
"version": "0.1.0-alpha.9",
"version": "0.1.0-alpha.10",
"description": "SDK for embedding resources from Superset into your own application",
"access": "public",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions superset-embedded-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export async function embedDashboard({

log('embedding');

if (supersetDomain.endsWith("/")) {
supersetDomain = supersetDomain.slice(0, -1);
}

function calculateConfig() {
let configNumber = 0
if(dashboardUiConfig) {
Expand Down

0 comments on commit 04fb47a

Please sign in to comment.