@@ -172,7 +172,7 @@ export const SQLEditorNav = ({
172172 visibility : 'user' ,
173173 name : debouncedSearchText ,
174174 } )
175- const numPrivateSnippets = privateSnippetCountData ?. count ?? 0
175+ const numPrivateSnippets = privateSnippets . length
176176
177177 const privateSnippetsTreeState = useMemo (
178178 ( ) =>
@@ -243,7 +243,7 @@ export const SQLEditorNav = ({
243243 favorite : true ,
244244 name : debouncedSearchText ,
245245 } )
246- const numFavoriteSnippets = favoritedSnippetCountData ?. count ?? 0
246+ const numFavoriteSnippets = favoriteSnippets . length
247247
248248 const favoritesTreeState = useMemo (
249249 ( ) =>
@@ -312,7 +312,7 @@ export const SQLEditorNav = ({
312312 visibility : 'project' ,
313313 name : debouncedSearchText ,
314314 } )
315- const numProjectSnippets = sharedSnippetCountData ?. count ?? 0
315+ const numProjectSnippets = sharedSnippets . length
316316
317317 const projectSnippetsTreeState = useMemo (
318318 ( ) =>
@@ -557,9 +557,7 @@ export const SQLEditorNav = ({
557557 onOpenChange = { setShowSharedSnippets }
558558 className = "px-0"
559559 >
560- < InnerSideMenuCollapsibleTrigger
561- title = { `Shared ${ numProjectSnippets > 0 ? ` (${ numProjectSnippets } )` : '' } ` }
562- />
560+ < InnerSideMenuCollapsibleTrigger title = { `Shared` } />
563561 < InnerSideMenuCollapsibleContent className = "group-data-[state=open]:pt-2" >
564562 { isLoadingSharedSqlSnippets ? (
565563 < SQLEditorLoadingSnippets />
@@ -615,9 +613,7 @@ export const SQLEditorNav = ({
615613 open = { showFavoriteSnippets }
616614 onOpenChange = { setShowFavoriteSnippets }
617615 >
618- < InnerSideMenuCollapsibleTrigger
619- title = { `Favorites ${ numFavoriteSnippets > 0 ? ` (${ numFavoriteSnippets } )` : '' } ` }
620- />
616+ < InnerSideMenuCollapsibleTrigger title = { `Favorites` } />
621617 < InnerSideMenuCollapsibleContent className = "group-data-[state=open]:pt-2" >
622618 { isLoadingFavoriteSqlSnippets ? (
623619 < SQLEditorLoadingSnippets />
@@ -678,10 +674,7 @@ export const SQLEditorNav = ({
678674 onOpenChange = { setShowPrivateSnippets }
679675 className = "px-0"
680676 >
681- < InnerSideMenuCollapsibleTrigger
682- title = { `PRIVATE
683- ${ numPrivateSnippets > 0 ? ` (${ numPrivateSnippets } )` : '' } ` }
684- />
677+ < InnerSideMenuCollapsibleTrigger title = { `PRIVATE` } />
685678 < InnerSideMenuCollapsibleContent className = "group-data-[state=open]:pt-2" >
686679 { isLoading ? (
687680 < SQLEditorLoadingSnippets />
0 commit comments