Jelajahi Sumber

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

Fixes: #17071
Hugo Häggmark 6 tahun lalu
induk
melakukan
fdd421e24c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);
           }