Skip to content

Commit

Permalink
Add handling for new discover
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Oct 19, 2023
1 parent e1e0c63 commit c9b517f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const URL_SOURCE = {
DASHBOARDS: "/app/dashboards#",
VISUALIZE: "/app/visualize#",
DISCOVER: "/app/discover#",
NEW_DISCOVER: "/app/data-explorer/discover#",
NOTEBOOKS: "notebooks",
}

Expand Down
2 changes: 1 addition & 1 deletion src/download-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const getReportSourceFromURL = (url) => {
else if (url.includes(URL_SOURCE.VISUALIZE)) {
return REPORT_TYPE.VISUALIZATION;
}
else if (url.includes(URL_SOURCE.DISCOVER)) {
else if (url.includes(URL_SOURCE.DISCOVER) || url.includes(URL_SOURCE.NEW_DISCOVER)) {
return REPORT_TYPE.DISCOVER;
}
else if (url.includes(URL_SOURCE.NOTEBOOKS)) {
Expand Down

0 comments on commit c9b517f

Please sign in to comment.