Skip to content

Commit 1cc1546

Browse files
committed
feat: Put dataset section behind a flag
1 parent 5ed675c commit 1cc1546

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/configurator/components/dataset-control-section.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
useConfiguratorState,
2727
} from "@/configurator/configurator-state";
2828
import { DataCubeMetadata } from "@/domain/data";
29+
import { useFlag } from "@/flags";
2930
import { useDataCubesMetadataQuery } from "@/graphql/hooks";
3031
import SvgIcAdd from "@/icons/components/IcAdd";
3132
import SvgIcChecked from "@/icons/components/IcChecked";
@@ -197,6 +198,11 @@ export const DatasetsControlSection = () => {
197198
setActiveSection("general");
198199
};
199200

201+
const isShown = useFlag("cubeMerge.enabled");
202+
if (!isShown) {
203+
return null;
204+
}
205+
200206
return (
201207
<ControlSection collapse>
202208
<SubsectionTitle titleId="controls-data" gutterBottom={false}>

0 commit comments

Comments
 (0)