diff --git a/apps/web/src/components/ui/card/InputCard.tsx b/apps/web/src/components/ui/card/InputCard.tsx index 834a27fe4..c68b62798 100644 --- a/apps/web/src/components/ui/card/InputCard.tsx +++ b/apps/web/src/components/ui/card/InputCard.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Button } from '..//buttons/Button'; +import { Button } from '../buttons/Button'; import { InputTextArea } from '../inputs/InputTextArea'; import { cn } from '@/lib/utils'; import { inputHasText } from '@/lib/text'; diff --git a/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx b/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx index c433d393b..04c2475a5 100644 --- a/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx +++ b/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/MetricItemCardThreeDotMenu.tsx @@ -136,9 +136,7 @@ const useRemoveFromDashboardItem = ({ dashboardId, metricIds: [metricId] }); - } - }), - [dashboardId, metricId, removeMetricFromDashboard] + [dashboardId, metricId, removeMetricFromDashboard, isPending] ); }; @@ -274,7 +272,7 @@ const useEditChartButton = ({ secondaryView: 'chart-edit' }) }), - [metricId] + [metricId, dashboardId, chatId] ); }; @@ -300,7 +298,7 @@ const useViewResultsButton = ({ page: 'results' }) }), - [metricId] + [metricId, dashboardId, chatId] ); }; @@ -326,6 +324,6 @@ const useViewSQLButton = ({ page: 'sql' }) }), - [metricId] + [metricId, dashboardId, chatId] ); };