Skip to content

Commit ae45d4c

Browse files
committed
rename params
1 parent cb0e399 commit ae45d4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tensorboard/plugins/projector/vz_projector/vz-projector-projections-panel.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ class ProjectionsPanel extends LegacyElementMixin(PolymerElement) {
398398
this.customSelectedSearchByMetadataOption =
399399
this.searchByMetadataOptions[Math.max(0, searchByMetadataIndex)];
400400
}
401-
public showTab(id: ProjectionType) {
402-
const tab = this.$$('.ink-tab[data-tab="' + id + '"]') as HTMLElement;
401+
public showTab(projection: ProjectionType) {
402+
const tab = this.$$('.ink-tab[data-tab="' + projection + '"]') as HTMLElement;
403403
const allTabs = this.root?.querySelectorAll('.ink-tab');
404404
if (allTabs) {
405405
for (let i = 0; i < allTabs.length; i++) {
@@ -414,7 +414,7 @@ class ProjectionsPanel extends LegacyElementMixin(PolymerElement) {
414414
}
415415
}
416416
util.classed(
417-
this.$$('.ink-panel-content[data-panel="' + id + '"]') as HTMLElement,
417+
this.$$('.ink-panel-content[data-panel="' + projection + '"]') as HTMLElement,
418418
'active',
419419
true
420420
);
@@ -427,7 +427,7 @@ class ProjectionsPanel extends LegacyElementMixin(PolymerElement) {
427427
this.style.height = main.clientHeight + 'px';
428428
});
429429
}
430-
this.beginProjection(id);
430+
this.beginProjection(projection);
431431
}
432432
private beginProjection(projection: ProjectionType) {
433433
if (this.polymerChangesTriggerReprojection === false) {

0 commit comments

Comments
 (0)