Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tensorboard/webapp/runs/views/runs_table/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ tf_ng_module(
"//tensorboard/webapp/alert/actions",
"//tensorboard/webapp/angular:expect_angular_material_button",
"//tensorboard/webapp/angular:expect_angular_material_checkbox",
"//tensorboard/webapp/angular:expect_angular_material_chips",
"//tensorboard/webapp/angular:expect_angular_material_dialog",
"//tensorboard/webapp/angular:expect_angular_material_form_field",
"//tensorboard/webapp/angular:expect_angular_material_icon",
Expand Down Expand Up @@ -145,6 +146,7 @@ tf_ts_library(
"//tensorboard/webapp/angular:expect_angular_cdk_overlay",
"//tensorboard/webapp/angular:expect_angular_core_testing",
"//tensorboard/webapp/angular:expect_angular_material_checkbox",
"//tensorboard/webapp/angular:expect_angular_material_chips",
"//tensorboard/webapp/angular:expect_angular_material_dialog",
"//tensorboard/webapp/angular:expect_angular_material_input",
"//tensorboard/webapp/angular:expect_angular_material_menu",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ export class FilterbarComponent {
@ViewChild('filterModal', {static: false})
private readonly filterModal!: CustomModalComponent;

_selectedFilterName = '';
private internalSelectedFilterName = '';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming is per internal style guide

get selectedFilterName(): string {
return this._selectedFilterName;
return this.internalSelectedFilterName;
}
set selectedFilterName(filterName: string) {
this._selectedFilterName = filterName;
this.internalSelectedFilterName = filterName;
}
// selectedFilter indirectly set using selectedFilterName.
_selectedFilter?: DiscreteFilter | IntervalFilter | undefined;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused

get selectedFilter(): DiscreteFilter | IntervalFilter | undefined {
return this.filters.get(this.selectedFilterName);
}
Expand Down