From 076f4f077288290da0c9f15b0780b3dc03365694 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 2 Sep 2024 14:18:47 -0300 Subject: [PATCH] fix: update BUNDLES_SIDEBAR_FOLDER_NAMES constant to include "Notion" (#3651) * chore: update BUNDLES_SIDEBAR_FOLDER_NAMES constant to include "Notion" * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- src/frontend/src/constants/constants.ts | 2 +- .../FlowPage/components/extraSidebarComponent/index.tsx | 6 +++++- src/frontend/src/utils/styleUtils.ts | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index 88d86eb3c..a81981259 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -728,7 +728,7 @@ export const PRIORITY_SIDEBAR_ORDER = [ "embeddings", ]; -export const BUNDLES_SIDEBAR_FOLDER_NAMES = ["notion"]; +export const BUNDLES_SIDEBAR_FOLDER_NAMES = ["notion", "Notion"]; export const AUTHORIZED_DUPLICATE_REQUESTS = [ "/health", diff --git a/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx index 7875a1d9d..8138008c5 100644 --- a/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx @@ -256,7 +256,11 @@ export default function ExtraSidebar(): JSX.Element { > {Object.keys(dataFilter) .sort(sortKeys) - .filter((x) => !PRIORITY_SIDEBAR_ORDER.includes(x)) + .filter( + (x) => + !PRIORITY_SIDEBAR_ORDER.includes(x) && + !BUNDLES_SIDEBAR_FOLDER_NAMES.includes(x), + ) .map((SBSectionName: keyof APIObjectType, index) => Object.keys(dataFilter[SBSectionName]).length > 0 ? (