File tree 3 files changed +16
-16
lines changed
tensorboard/webapp/metrics/views/main_view
3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,18 @@ export class CardGroupsContainer {
37
37
@Input ( ) cardObserver ! : CardObserver ;
38
38
39
39
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
+ ) ;
52
52
}
53
53
54
54
readonly cardGroups$ : Observable < CardGroup [ ] > ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export class EmptyTagMatchMessageContainer {
44
44
. pipe (
45
45
map ( ( cardList ) => {
46
46
return new Set ( cardList . map ( ( { tag} ) => tag ) ) . size ;
47
- } ) ,
47
+ } )
48
48
) ;
49
49
}
50
50
Original file line number Diff line number Diff line change @@ -65,15 +65,15 @@ export class MainViewContainer {
65
65
loadState . state === DataLoadState . LOADING &&
66
66
loadState . lastLoadedTimeInMs === null
67
67
) ;
68
- } ) ,
68
+ } )
69
69
) ;
70
70
this . showFilteredView$ = this . store . select ( getMetricsTagFilter ) . pipe (
71
71
map ( ( filter ) => {
72
72
return filter . length > 0 ;
73
- } ) ,
73
+ } )
74
74
) ;
75
75
this . filteredPluginTypes$ = this . store . select (
76
- getMetricsFilteredPluginTypes ,
76
+ getMetricsFilteredPluginTypes
77
77
) ;
78
78
this . isSlideoutMenuOpen$ = this . store . select ( isMetricsSlideoutMenuOpen ) ;
79
79
}
You can’t perform that action at this time.
0 commit comments