mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
fix variable name
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user