mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 00:10:57 +00:00 
			
		
		
		
	Update component.jsx
This commit is contained in:
		
							parent
							
								
									9662c29374
								
							
						
					
					
						commit
						08f56b54f5
					
				@ -11,14 +11,12 @@ export default function Component({ service }) {
 | 
				
			|||||||
  const { data: grabsData, error: grabsError } = useWidgetAPI(widget, "indexerstats");
 | 
					  const { data: grabsData, error: grabsError } = useWidgetAPI(widget, "indexerstats");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (grabsError) {
 | 
					  if (grabsError) {
 | 
				
			||||||
    const finalError = indexersError ?? grabsError;
 | 
					    return <Container error={grabsError} />;
 | 
				
			||||||
    return <Container error={finalError} />;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!grabsData) {
 | 
					  if (!grabsData) {
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
      <Container service={service}>
 | 
					      <Container service={service}>
 | 
				
			||||||
        <Block label="prowlarr.enableIndexers" />
 | 
					 | 
				
			||||||
        <Block label="prowlarr.numberOfGrabs" />
 | 
					        <Block label="prowlarr.numberOfGrabs" />
 | 
				
			||||||
        <Block label="prowlarr.numberOfQueries" />
 | 
					        <Block label="prowlarr.numberOfQueries" />
 | 
				
			||||||
        <Block label="prowlarr.numberOfFailGrabs" />
 | 
					        <Block label="prowlarr.numberOfFailGrabs" />
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user