diff --git a/public/app/plugins/panel/table2/TablePanel.tsx b/public/app/plugins/panel/table2/TablePanel.tsx index eba47728bdc..c9669299125 100644 --- a/public/app/plugins/panel/table2/TablePanel.tsx +++ b/public/app/plugins/panel/table2/TablePanel.tsx @@ -205,7 +205,7 @@ export class TablePanel extends PureComponent { this.colorState[style.colorMode] = this.getColorForValue(numericValue, style); } - renderRowconstiables(rowIndex) { + renderRowVariables(rowIndex) { const { panelData } = this.props; const scopedVars = {}; @@ -249,7 +249,7 @@ export class TablePanel extends PureComponent { let columnHtml; if (column.style && column.style.link) { // Render cell as link - const scopedconsts = this.renderRowconstiables(rowIndex); + const scopedconsts = this.renderRowVariables(rowIndex); scopedconsts['__cell'] = { value: value }; const cellLink = templateSrv.replace(column.style.linkUrl, scopedconsts, encodeURIComponent); diff --git a/public/app/plugins/panel/table2/types.ts b/public/app/plugins/panel/table2/types.ts index 3251c97a432..a06d833107d 100644 --- a/public/app/plugins/panel/table2/types.ts +++ b/public/app/plugins/panel/table2/types.ts @@ -35,7 +35,7 @@ export interface Column { export interface Options { showHeader: boolean; - styles: Style[]; // TODO, just a copy from existing table + styles: Style[]; pageSize: number; }