fix variable name

This commit is contained in:
ryan
2019-03-05 18:55:09 -08:00
parent 32543cac10
commit 589229d8af
2 changed files with 3 additions and 3 deletions
@@ -205,7 +205,7 @@ export class TablePanel extends PureComponent<Props> {
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<Props> {
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);
+1 -1
View File
@@ -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;
}