diff --git a/app/layout/project/sidebar/scenario/grid-setup/features/target-spf/targets-spf-table/actions-menu/index.tsx b/app/layout/project/sidebar/scenario/grid-setup/features/target-spf/targets-spf-table/actions-menu/index.tsx index 4e4d98a885..805bc2ac36 100644 --- a/app/layout/project/sidebar/scenario/grid-setup/features/target-spf/targets-spf-table/actions-menu/index.tsx +++ b/app/layout/project/sidebar/scenario/grid-setup/features/target-spf/targets-spf-table/actions-menu/index.tsx @@ -4,6 +4,8 @@ import { useQueryClient } from 'react-query'; import { useRouter } from 'next/router'; +import { useFeatureFlags } from 'hooks/feature-flags'; + import Icon from 'components/icon'; import Modal from 'components/modal/component'; import EditModal from 'layout/project/sidebar/project/inventory-panel/features/modals/edit'; @@ -35,6 +37,7 @@ const ActionsMenu = ({ const queryClient = useQueryClient(); const isDeletable = item.isCustom; const isSplittable = Boolean(item.splitOptions?.length); + const { split } = useFeatureFlags(); const [modalState, setModalState] = useState<{ edit: boolean; split: boolean }>({ edit: false, @@ -83,7 +86,7 @@ const ActionsMenu = ({ - {isSplittable && ( + {isSplittable && split && (