mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Chore: better tailscale error handling
This commit is contained in:
		
							parent
							
								
									5cc487a96d
								
							
						
					
					
						commit
						276a1c3ef4
					
				@ -11,8 +11,8 @@ export default function Component({ service }) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  const { data: statsData, error: statsError } = useWidgetAPI(widget, "device");
 | 
					  const { data: statsData, error: statsError } = useWidgetAPI(widget, "device");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (statsError) {
 | 
					  if (statsError || statsData?.message) {
 | 
				
			||||||
    return <Container service={service} error={statsError} />;
 | 
					    return <Container service={service} error={statsError ?? statsData} />;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!statsData) {
 | 
					  if (!statsData) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user