@@ -41,7 +41,10 @@ import {
4141	ScrollArea , 
4242	Skeleton , 
4343}  from  "@/components" ; 
44- import  {  useInspectorDataProvider  }  from  "@/components/actors" ; 
44+ import  { 
45+ 	useDataProviderCheck , 
46+ 	useInspectorDataProvider , 
47+ }  from  "@/components/actors" ; 
4548import  type  {  HeaderLinkProps  }  from  "@/components/header/header-link" ; 
4649import  {  ensureTrailingSlash  }  from  "@/lib/utils" ; 
4750import  {  ActorBuildsList  }  from  "./actor-builds-list" ; 
@@ -388,6 +391,7 @@ const Subnav = () => {
388391				} 
389392			: {  to : "/" ,  fuzzy : true  } , 
390393	) ; 
394+ 	const  hasDataProvider  =  useDataProviderCheck ( ) ; 
391395
392396	if  ( nsMatch  ===  false )  { 
393397		return  null ; 
@@ -405,12 +409,14 @@ const Subnav = () => {
405409					Connect
406410				</ HeaderLink > 
407411			)  : null } 
408- 			< div  className = "w-full" > 
409- 				< span  className = "block text-muted-foreground text-xs px-2 py-1 transition-colors mb-0.5" > 
410- 					Instances
411- 				</ span > 
412- 				< ActorBuildsList  /> 
413- 			</ div > 
412+ 			{ hasDataProvider  ? ( 
413+ 				< div  className = "w-full" > 
414+ 					< span  className = "block text-muted-foreground text-xs px-2 py-1 transition-colors mb-0.5" > 
415+ 						Instances
416+ 					</ span > 
417+ 					< ActorBuildsList  /> 
418+ 				</ div > 
419+ 			)  : null } 
414420		</ div > 
415421	) ; 
416422} ; 
@@ -535,6 +541,8 @@ function CloudSidebarContent() {
535541		fuzzy : true , 
536542	} ) ; 
537543
544+ 	const  hasDataProvider  =  useDataProviderCheck ( ) ; 
545+ 
538546	if  ( matchNamespace )  { 
539547		return  ( 
540548			< div  className = "flex gap-1.5 flex-col" > 
@@ -546,12 +554,14 @@ function CloudSidebarContent() {
546554				> 
547555					Connect
548556				</ HeaderLink > 
549- 				< div  className = "w-full pt-1.5" > 
550- 					< span  className = "block text-muted-foreground text-xs px-1 py-1 transition-colors mb-0.5" > 
551- 						Instances
552- 					</ span > 
553- 					< ActorBuildsList  /> 
554- 				</ div > 
557+ 				{ hasDataProvider  ? ( 
558+ 					< div  className = "w-full pt-1.5" > 
559+ 						< span  className = "block text-muted-foreground text-xs px-1 py-1 transition-colors mb-0.5" > 
560+ 							Instances
561+ 						</ span > 
562+ 						< ActorBuildsList  /> 
563+ 					</ div > 
564+ 				)  : null } 
555565			</ div > 
556566		) ; 
557567	} 
0 commit comments