From 589229d8afb718a94d1475c420ba92e0600ffbc5 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 5 Mar 2019 18:55:09 -0800 Subject: [PATCH] fix variable name --- public/app/plugins/panel/table2/TablePanel.tsx | 4 ++-- public/app/plugins/panel/table2/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }