File tree Expand file tree Collapse file tree
src/routes/(console)/organization-[organization]/billing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 const projectsOffset = $derived (
5858 offset ?? ((Number (page .url .searchParams .get (' page' )) || 1 ) - 1 ) * projectsLimit
5959 );
60+ const projectBreakdownCount = $derived (currentAggregation ?.breakdown ?.length ?? 0 );
61+ const hasProjectBreakdown = $derived (projectBreakdownCount > 0 );
6062 const totalProjects = $derived (
6163 (currentAggregation ?.resources ?.find ?.((r ) => r .resourceId === ' projects' )?.value ??
6264 null ) ||
63- currentAggregation ?. breakdown ?. length ||
65+ projectBreakdownCount ||
6466 0
6567 );
6668 const aggregationKey = $derived (
518520 </svelte:fragment >
519521 </AccordionTable .Row >
520522 {/each }
521- {#if totalProjects > projectsLimit }
523+ {#if totalProjects > projectsLimit && hasProjectBreakdown }
522524 <AccordionTable .Row {root } id ="pagination-row" expandable ={false }>
523525 <AccordionTable .Cell {root } column =" item" >
524526 <div class =" pagination-left" >
You can’t perform that action at this time.
0 commit comments