diff --git a/frontend/src/pages/modelServing/useModelMetricsEnabled.ts b/frontend/src/pages/modelServing/useModelMetricsEnabled.ts index 8319193654..94d31a8878 100644 --- a/frontend/src/pages/modelServing/useModelMetricsEnabled.ts +++ b/frontend/src/pages/modelServing/useModelMetricsEnabled.ts @@ -1,14 +1,16 @@ -import { useAppContext } from '~/app/AppContext'; -import { useDashboardNamespace } from '~/redux/selectors'; -import { isModelMetricsEnabled } from './screens/metrics/utils'; +// import { useAppContext } from '~/app/AppContext'; +// import { useDashboardNamespace } from '~/redux/selectors'; +// import { isModelMetricsEnabled } from './screens/metrics/utils'; +// +// const useModelMetricsEnabled = (): [modelMetricsEnabled: boolean] => { +// const { dashboardNamespace } = useDashboardNamespace(); +// const { dashboardConfig } = useAppContext(); +// +// const checkModelMetricsEnabled = () => isModelMetricsEnabled(dashboardNamespace, dashboardConfig); +// +// return [checkModelMetricsEnabled()]; +// }; -const useModelMetricsEnabled = (): [modelMetricsEnabled: boolean] => { - const { dashboardNamespace } = useDashboardNamespace(); - const { dashboardConfig } = useAppContext(); - - const checkModelMetricsEnabled = () => isModelMetricsEnabled(dashboardNamespace, dashboardConfig); - - return [checkModelMetricsEnabled()]; -}; +const useModelMetricsEnabled = () => [false]; export default useModelMetricsEnabled;