Skip to content

Commit c0d06fe

Browse files
chore: custom label migration report fix
1 parent 5a64e49 commit c0d06fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/resultsbuilder/CustomLabelMigrationReporter.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ export class CustomLabelMigrationReporter {
7575
}
7676

7777
public static generateCustomTemplateForPage(page: number, totalPages: number): string {
78+
// Don't show pagination if there's only 1 page
79+
if (totalPages === 1) {
80+
return '';
81+
}
82+
7883
// Calculate the range of pages to show around current page
7984
const range = 2; // Show 2 pages on each side of current page
8085
const start = Math.max(2, page - range);

0 commit comments

Comments
 (0)