Skip to content

Commit 7e0efbd

Browse files
authored
Merge pull request pterodactyl#3148 from mammut53/develop
Fix displaying wrong backup number on pages
2 parents 0baa74a + 8dca214 commit 7e0efbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/scripts/components/server/backups/BackupContainer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ const BackupContainer = () => {
6565
}
6666
<Can action={'backup.create'}>
6767
<div css={tw`mt-6 sm:flex items-center justify-end`}>
68-
{(backupLimit > 0 && backups.items.length > 0) &&
68+
{(backupLimit > 0 && backups.pagination.total > 0) &&
6969
<p css={tw`text-sm text-neutral-300 mb-4 sm:mr-6 sm:mb-0`}>
70-
{backups.items.length} of {backupLimit} backups have been created for this server.
70+
{backups.pagination.total} of {backupLimit} backups have been created for this server.
7171
</p>
7272
}
73-
{backupLimit > 0 && backupLimit !== backups.items.length &&
73+
{backupLimit > 0 && backupLimit !== backups.pagination.total &&
7474
<CreateBackupButton css={tw`w-full sm:w-auto`}/>
7575
}
7676
</div>

0 commit comments

Comments
 (0)