We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcf460e commit a2d0483Copy full SHA for a2d0483
1 file changed
packages/web-console/src/scenes/Schema/Row/index.tsx
@@ -52,7 +52,7 @@ type Props = Readonly<{
52
kind: TreeNodeKind
53
table_id?: number
54
name: string
55
- onClick?: (event: MouseEvent) => void
+ onClick: () => void
56
"data-hook"?: string
57
partitionBy?: QuestDB.PartitionBy
58
walEnabled?: boolean
@@ -383,7 +383,7 @@ const Row = ({
383
if (isTableKind && selectOpen && onSelectToggle) {
384
onSelectToggle({name, type: kind})
385
} else {
386
- onClick?.(e)
+ onClick()
387
}
388
}}
389
onKeyDown={(e) => {
@@ -395,8 +395,7 @@ const Row = ({
395
|| (e.key === "ArrowRight" && !expanded)
396
|| (e.key === "ArrowLeft" && expanded)
397
) {
398
- // @ts-ignore
399
- onClick?.()
400
401
402
if (e.key === "ArrowDown") {
0 commit comments