Skip to content

Commit 2e84f9a

Browse files
committed
no any
1 parent 78b5a16 commit 2e84f9a

File tree

1 file changed

+2
-6
lines changed
  • apps/dashboard/app/(main)/observability/database/[id]/performance

1 file changed

+2
-6
lines changed

apps/dashboard/app/(main)/observability/database/[id]/performance/page.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ export default function PerformancePage({ params }: PerformancePageProps) {
275275
setTimeout(() => setSuccess(null), 5000);
276276
};
277277

278-
// Transform query data to include name field for DataTable compatibility
279278
const transformQueryData = useCallback(
280279
(queries: QueryPerformanceSummary[]) => {
281280
return queries.map((query) => ({
@@ -286,7 +285,6 @@ export default function PerformancePage({ params }: PerformancePageProps) {
286285
[]
287286
);
288287

289-
// Handle query row click
290288
const handleQueryClick = useCallback(
291289
(query: QueryPerformanceSummary & { name: string }) => {
292290
setSelectedQuery(query);
@@ -295,7 +293,6 @@ export default function PerformancePage({ params }: PerformancePageProps) {
295293
[]
296294
);
297295

298-
// Create simplified query tabs for DataTable
299296
const queryTabs = useMemo(
300297
() => [
301298
{
@@ -317,7 +314,7 @@ export default function PerformancePage({ params }: PerformancePageProps) {
317314
} as const,
318315
],
319316
[metrics, transformQueryData]
320-
) as any;
317+
);
321318

322319
if (extensionLoading) {
323320
return <LoadingState />;
@@ -507,7 +504,6 @@ export default function PerformancePage({ params }: PerformancePageProps) {
507504
isLoading={metricsLoading}
508505
minHeight={400}
509506
onRowClick={(_, value) => {
510-
// Find the query by its query text
511507
const allQueries = [
512508
...transformQueryData(metrics?.top_queries_by_time || []),
513509
...transformQueryData(metrics?.top_queries_by_calls || []),
@@ -521,7 +517,7 @@ export default function PerformancePage({ params }: PerformancePageProps) {
521517
}
522518
}}
523519
showSearch={true}
524-
tabs={queryTabs as any}
520+
tabs={queryTabs}
525521
title=""
526522
/>
527523
</div>

0 commit comments

Comments
 (0)