Skip to content

Commit

Permalink
Add extra condition if coming from dashboards management
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Sep 19, 2023
1 parent b448987 commit d076a2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/components/context_menu/context_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ window.onpopstate = history.onpushstate = () => {
};

const getApiPath = () => {
if (window.location.href.includes('/data-explorer/discover/')) return '../../../api'
if (window.location.href.includes('/data-explorer/discover')) return '../../api'
return '../api'
}
Expand Down

0 comments on commit d076a2e

Please sign in to comment.