File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ const renderNavbarProfileSignin = () => {
48
48
const removeLoadingNavbarProfile = ( ) => {
49
49
const profileEl = document . querySelector ( '.navbar__profile' ) ;
50
50
const profileLoadingEl = profileEl . querySelector ( '.profile--loading' ) ;
51
+
52
+ if ( ! profileLoadingEl ) return ;
51
53
profileEl . removeChild ( profileLoadingEl ) ;
52
54
} ;
53
55
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ const onCreate = () => {
140
140
console . error ( err ) ;
141
141
} )
142
142
. finally ( ( ) => {
143
+ removeLoadingNavbarProfile ( ) ;
143
144
removeLoadingCards ( ) ;
144
145
} ) ;
145
146
@@ -246,7 +247,7 @@ function renderAllGroups({ cardOnClick }) {
246
247
dataStore . filteredGroupsIds . forEach ( ( id ) =>
247
248
renderGroupById ( {
248
249
group : dataStore . groups [ id ] ,
249
- cardOnClick,
250
+ cardOnClick : ( ) => cardOnClick ( id ) ,
250
251
} ) ,
251
252
) ;
252
253
}
You can’t perform that action at this time.
0 commit comments