From 1cc15466f38907307eba31b1750fcbada49b7973 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Fri, 31 May 2024 15:40:27 +0200 Subject: [PATCH] feat: Put dataset section behind a flag --- app/configurator/components/dataset-control-section.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/configurator/components/dataset-control-section.tsx b/app/configurator/components/dataset-control-section.tsx index 6d2f5069a..e06873d36 100644 --- a/app/configurator/components/dataset-control-section.tsx +++ b/app/configurator/components/dataset-control-section.tsx @@ -26,6 +26,7 @@ import { useConfiguratorState, } from "@/configurator/configurator-state"; import { DataCubeMetadata } from "@/domain/data"; +import { useFlag } from "@/flags"; import { useDataCubesMetadataQuery } from "@/graphql/hooks"; import SvgIcAdd from "@/icons/components/IcAdd"; import SvgIcChecked from "@/icons/components/IcChecked"; @@ -197,6 +198,11 @@ export const DatasetsControlSection = () => { setActiveSection("general"); }; + const isShown = useFlag("cubeMerge.enabled"); + if (!isShown) { + return null; + } + return (