File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed
tensorboard/webapp/metrics/views/main_view Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,18 @@ export class CardGroupsContainer {
3737 @Input ( ) cardObserver ! : CardObserver ;
3838
3939 constructor ( private readonly store : Store < State > ) {
40- this . cardGroups$ = this . store
41- . select ( getSortedRenderableCardIdsWithMetadata )
42- . pipe (
43- combineLatestWith ( this . store . select ( getMetricsFilteredPluginTypes ) ) ,
44- map ( ( [ cardList , filteredPlugins ] ) => {
45- if ( ! filteredPlugins . size ) return cardList ;
46- return cardList . filter ( ( card ) => {
47- return filteredPlugins . has ( card . plugin ) ;
48- } ) ;
49- } ) ,
50- map ( ( cardList ) => groupCardIdWithMetdata ( cardList ) )
51- ) ;
40+ this . cardGroups$ = this . store
41+ . select ( getSortedRenderableCardIdsWithMetadata )
42+ . pipe (
43+ combineLatestWith ( this . store . select ( getMetricsFilteredPluginTypes ) ) ,
44+ map ( ( [ cardList , filteredPlugins ] ) => {
45+ if ( ! filteredPlugins . size ) return cardList ;
46+ return cardList . filter ( ( card ) => {
47+ return filteredPlugins . has ( card . plugin ) ;
48+ } ) ;
49+ } ) ,
50+ map ( ( cardList ) => groupCardIdWithMetdata ( cardList ) )
51+ ) ;
5252 }
5353
5454 readonly cardGroups$ : Observable < CardGroup [ ] > ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export class EmptyTagMatchMessageContainer {
4444 . pipe (
4545 map ( ( cardList ) => {
4646 return new Set ( cardList . map ( ( { tag} ) => tag ) ) . size ;
47- } ) ,
47+ } )
4848 ) ;
4949 }
5050
Original file line number Diff line number Diff line change @@ -65,15 +65,15 @@ export class MainViewContainer {
6565 loadState . state === DataLoadState . LOADING &&
6666 loadState . lastLoadedTimeInMs === null
6767 ) ;
68- } ) ,
68+ } )
6969 ) ;
7070 this . showFilteredView$ = this . store . select ( getMetricsTagFilter ) . pipe (
7171 map ( ( filter ) => {
7272 return filter . length > 0 ;
73- } ) ,
73+ } )
7474 ) ;
7575 this . filteredPluginTypes$ = this . store . select (
76- getMetricsFilteredPluginTypes ,
76+ getMetricsFilteredPluginTypes
7777 ) ;
7878 this . isSlideoutMenuOpen$ = this . store . select ( isMetricsSlideoutMenuOpen ) ;
7979 }
You can’t perform that action at this time.
0 commit comments