Skip to content

Commit

Permalink
console: SQLViewer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Nov 14, 2024
1 parent e8bfcec commit 739a48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapps/console/components/SQLViewer/SQLViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const SchemaTree: React.FC<SchemaTreeProps> = ({ onColumnSelect, onTableSelect,
isLeaf: true,
checkable: false,
title: <Tooltip title={column.name + ": " + column.type}>{trimMiddle(column.name, 28)}</Tooltip>,
value: column.name,
key: `${name}_${column.name}`,
};
}),
Expand All @@ -104,7 +105,7 @@ const SchemaTree: React.FC<SchemaTreeProps> = ({ onColumnSelect, onTableSelect,
<Tree.DirectoryTree
onSelect={(keys, e) => {
if (e.node.isLeaf) {
onColumnSelect?.(e.node.key);
onColumnSelect?.(e.node["value"]);
}
}}
selectable={false}
Expand Down

0 comments on commit 739a48f

Please sign in to comment.