Skip to content

Commit

Permalink
fix lint for 6882
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyajones committed Jul 17, 2024
1 parent 85e4716 commit 0432824
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions tensorboard/webapp/metrics/views/main_view/card_groups_container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ export class CardGroupsContainer {
@Input() cardObserver!: CardObserver;

constructor(private readonly store: Store<State>) {
this.cardGroups$ = this.store
.select(getSortedRenderableCardIdsWithMetadata)
.pipe(
combineLatestWith(this.store.select(getMetricsFilteredPluginTypes)),
map(([cardList, filteredPlugins]) => {
if (!filteredPlugins.size) return cardList;
return cardList.filter((card) => {
return filteredPlugins.has(card.plugin);
});
}),
map((cardList) => groupCardIdWithMetdata(cardList))
);
this.cardGroups$ = this.store
.select(getSortedRenderableCardIdsWithMetadata)
.pipe(
combineLatestWith(this.store.select(getMetricsFilteredPluginTypes)),
map(([cardList, filteredPlugins]) => {
if (!filteredPlugins.size) return cardList;
return cardList.filter((card) => {
return filteredPlugins.has(card.plugin);
});
}),
map((cardList) => groupCardIdWithMetdata(cardList))
);
}

readonly cardGroups$: Observable<CardGroup[]>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class EmptyTagMatchMessageContainer {
.pipe(
map((cardList) => {
return new Set(cardList.map(({tag}) => tag)).size;
}),
})
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ export class MainViewContainer {
loadState.state === DataLoadState.LOADING &&
loadState.lastLoadedTimeInMs === null
);
}),
})
);
this.showFilteredView$ = this.store.select(getMetricsTagFilter).pipe(
map((filter) => {
return filter.length > 0;
}),
})
);
this.filteredPluginTypes$ = this.store.select(
getMetricsFilteredPluginTypes,
getMetricsFilteredPluginTypes
);
this.isSlideoutMenuOpen$ = this.store.select(isMetricsSlideoutMenuOpen);
}
Expand Down

0 comments on commit 0432824

Please sign in to comment.