浏览代码

Explore: Fixes filtering in Prometheus queries when clicking in Table (#17083)

Fixes: #17071
Hugo Häggmark 6 年之前
父节点
当前提交
fdd421e24c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/features/explore/Table.tsx

+ 1 - 1
public/app/features/explore/Table.tsx

@@ -26,7 +26,7 @@ export default class Table extends PureComponent<TableProps> {
         if (e.target) {
           const link = e.target as HTMLElement;
           if (link.className === 'link') {
-            const columnKey = column.Header;
+            const columnKey = column.Header().props.title;
             const rowValue = rowInfo.row[columnKey];
             this.props.onClickCell(columnKey, rowValue);
           }