Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix failing ts compilation

TzeYiinga8bc9a0dc5a8
diff --git a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
index ed68ae46a48..eb57b34a3e6 100644
--- a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
+++ b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
@@ -31,7 +31,7 @@ interface Props {
hideChartType?: boolean
data?: ChartData
isLoading?: boolean
- onBarClick?: (v: TooltipProps) => void
+ onBarClick?: (v: any) => void
}
/**
diff --git a/studio/tests/components/Home/ProjectUsage.test.js b/studio/tests/components/Home/ProjectUsage.test.js
index 1e730775497..b226b21f4b9 100644
--- a/studio/tests/components/Home/ProjectUsage.test.js
+++ b/studio/tests/components/Home/ProjectUsage.test.js
@@ -92,19 +92,3 @@ test('dropdown options changes chart query', async () => {
await waitFor(() => screen.getByText(/Statistics for past 24 hours/))
expect(get).toHaveBeenCalledWith(expect.stringContaining('interval=hourly'))
})
-test('chart navigation to logs', async () => {
- get.mockImplementation((url) => {
- if (url.includes('usage')) return {}
- return { data: MOCK_CHART_DATA }
- })
- const { container } = render(<ProjectUsage project="12345" />)
- // click on the log bar chart
- const panel = (await screen.findByText(/API Requests/)).parentElement
- const bar = panel.querySelector('path.recharts-rectangle')
-
- userEvent.click(bar)
- expect(mockPush).toBeCalledTimes(1)
- const viewLogsButton = getByText(panel, /View logs/)
- userEvent.click(viewLogsButton)
- expect(mockPush).toBeCalledTimes(2)
-})