diff --git a/client/src/api/networks/network/mistralai.ts b/client/src/api/networks/network/mistralai.ts index 5fb5c34f..62082a86 100644 --- a/client/src/api/networks/network/mistralai.ts +++ b/client/src/api/networks/network/mistralai.ts @@ -1,6 +1,5 @@ import { NetworkCommunities } from "../../../types/network" -const ENABLE_DEV = import.meta.env.DEV || import.meta.env.MODE === "staging" const { VITE_MISTRAL_URL: MISTRAL_URL, VITE_MISTRAL_KEY: MISTRAL_KEY } = import.meta.env const headers = MISTRAL_KEY ? { Authorization: `Bearer ${MISTRAL_KEY}` } : {} const postHeaders = { ...headers, "Content-Type": "application/json" } @@ -38,8 +37,6 @@ async function mistralLabelsFromDomains(domains: string): Promise<string> { } export async function openAiLabeledClusters(clusters: NetworkCommunities): Promise<NetworkCommunities> { - if (!ENABLE_DEV) return clusters - const prefix = "list" const domains = clusters?.reduce((acc, cluster, index) => { if (cluster?.domains) { diff --git a/client/src/pages/networks/index.tsx b/client/src/pages/networks/index.tsx index 2ceabae0..3df455f4 100644 --- a/client/src/pages/networks/index.tsx +++ b/client/src/pages/networks/index.tsx @@ -54,8 +54,6 @@ const NETWORK_TABS_MAPPING = { }, } -const ENABLE_DEV = import.meta.env.DEV || import.meta.env.MODE === "staging" - const networkQuery = (query: string) => query || "*" const networkTabs = Object.values(NETWORK_TABS_MAPPING).sort((a, b) => a.index - b.index) const networkTabFindIndex = (label: string) => networkTabs.findIndex((tab) => tab.label === label) @@ -66,14 +64,12 @@ function NetworksPage() { const { screen } = useScreenSize() const { currentQuery, handleQueryChange } = useUrl() const { currentTab, handleTabChange } = useTab() - const { clusters: computeClusters, handleClustersChange, disableClusters } = useClusters() + const { clusters: computeClusters, handleClustersChange } = useClusters() const [focusItem, setFocusItem] = useState("") const resetFocus = () => setFocusItem("") const isMobile = screen === "sm" || screen === "xs" - if (!ENABLE_DEV) disableClusters() - return ( <> <Container className={"bg-network"} fluid> @@ -139,7 +135,7 @@ function NetworksPage() { handleClustersChange(value) resetFocus() }} - show={ENABLE_DEV} + show={true} /> <p className="fr-text--xs fr-text-mention--grey"> {intl.formatMessage({ id: "networks.clusters.button.description" })}