Skip to content

Commit a2d0483

Browse files
committed
remove ts-ignore
1 parent dcf460e commit a2d0483

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • packages/web-console/src/scenes/Schema/Row

packages/web-console/src/scenes/Schema/Row/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Props = Readonly<{
5252
kind: TreeNodeKind
5353
table_id?: number
5454
name: string
55-
onClick?: (event: MouseEvent) => void
55+
onClick: () => void
5656
"data-hook"?: string
5757
partitionBy?: QuestDB.PartitionBy
5858
walEnabled?: boolean
@@ -383,7 +383,7 @@ const Row = ({
383383
if (isTableKind && selectOpen && onSelectToggle) {
384384
onSelectToggle({name, type: kind})
385385
} else {
386-
onClick?.(e)
386+
onClick()
387387
}
388388
}}
389389
onKeyDown={(e) => {
@@ -395,8 +395,7 @@ const Row = ({
395395
|| (e.key === "ArrowRight" && !expanded)
396396
|| (e.key === "ArrowLeft" && expanded)
397397
) {
398-
// @ts-ignore
399-
onClick?.()
398+
onClick()
400399
}
401400
}
402401
if (e.key === "ArrowDown") {

0 commit comments

Comments
 (0)