Skip to content

Commit 5c5006d

Browse files
author
Erwin Dondorp
committed
fix confusing variable name
1 parent 1a4e40f commit 5c5006d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

saltgui/static/scripts/panels/Panel.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,17 +1077,17 @@ export class Panel {
10771077
let colNr = -1;
10781078
// find a column with this name
10791079
for (let i = 0; i < this.table.tHead.children[0].children.length; i++) {
1080-
const td = this.table.tHead.children[0].children[i];
1081-
if (td.innerText === pColTitle) {
1080+
const th = this.table.tHead.children[0].children[i];
1081+
if (th.innerText === pColTitle) {
10821082
colNr = i;
10831083
break;
10841084
}
10851085
}
10861086

10871087
// title
10881088
for (const tr of this.table.tHead.children) {
1089-
const td = tr.children[colNr];
1090-
td.style.display = pShow ? "" : "none";
1089+
const th = tr.children[colNr];
1090+
th.style.display = pShow ? "" : "none";
10911091
}
10921092
// data
10931093
for (const tr of this.table.tBodies[0].children) {

0 commit comments

Comments
 (0)