From c9b517fa89dc12bc3461b733920f578cc7088727 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Thu, 19 Oct 2023 12:30:13 -0400 Subject: [PATCH] Add handling for new discover Signed-off-by: Derek Ho --- src/constants.js | 1 + src/download-helpers.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/constants.js b/src/constants.js index c427678..e5a141b 100644 --- a/src/constants.js +++ b/src/constants.js @@ -47,6 +47,7 @@ const URL_SOURCE = { DASHBOARDS: "/app/dashboards#", VISUALIZE: "/app/visualize#", DISCOVER: "/app/discover#", + NEW_DISCOVER: "/app/data-explorer/discover#", NOTEBOOKS: "notebooks", } diff --git a/src/download-helpers.js b/src/download-helpers.js index 4ce6dac..4a8dd1f 100644 --- a/src/download-helpers.js +++ b/src/download-helpers.js @@ -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)) {