fix: next page when no runs output crash
This commit is contained in:
		
							parent
							
								
									1d25aadd74
								
							
						
					
					
						commit
						64b7977fae
					
				@ -35,7 +35,9 @@ export async function RunsTable(props: {
 | 
				
			|||||||
    <div>
 | 
					    <div>
 | 
				
			||||||
      <div className="overflow-auto h-fit w-full">
 | 
					      <div className="overflow-auto h-fit w-full">
 | 
				
			||||||
        <Table className="">
 | 
					        <Table className="">
 | 
				
			||||||
          {/* <TableCaption>A list of your recent runs.</TableCaption> */}
 | 
					          {allRuns.length == 0 && (
 | 
				
			||||||
 | 
					            <TableCaption>A list of your recent runs.</TableCaption>
 | 
				
			||||||
 | 
					          )}
 | 
				
			||||||
          <TableHeader className="bg-background top-0 sticky">
 | 
					          <TableHeader className="bg-background top-0 sticky">
 | 
				
			||||||
            <TableRow>
 | 
					            <TableRow>
 | 
				
			||||||
              <TableHead className="w-[100px]">Number</TableHead>
 | 
					              <TableHead className="w-[100px]">Number</TableHead>
 | 
				
			||||||
@ -54,10 +56,12 @@ export async function RunsTable(props: {
 | 
				
			|||||||
        </Table>
 | 
					        </Table>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <PaginationControl
 | 
					      {Math.ceil(total / itemPerPage) > 0 && (
 | 
				
			||||||
        totalPage={Math.ceil(total / itemPerPage)}
 | 
					        <PaginationControl
 | 
				
			||||||
        currentPage={page}
 | 
					          totalPage={Math.ceil(total / itemPerPage)}
 | 
				
			||||||
      />
 | 
					          currentPage={page}
 | 
				
			||||||
 | 
					        />
 | 
				
			||||||
 | 
					      )}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user