From 8dca2140b3efec5da3d61ac22ffe20fe57ca5f98 Mon Sep 17 00:00:00 2001 From: mammut53 <30445006+mammut53@users.noreply.github.com> Date: Sun, 7 Mar 2021 01:57:02 +0100 Subject: [PATCH] Fix displaying wrong backup number on pages By having multiplie pages the current number of backups broke --- .../scripts/components/server/backups/BackupContainer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/scripts/components/server/backups/BackupContainer.tsx b/resources/scripts/components/server/backups/BackupContainer.tsx index 99f1e6326..bd732d4f0 100644 --- a/resources/scripts/components/server/backups/BackupContainer.tsx +++ b/resources/scripts/components/server/backups/BackupContainer.tsx @@ -65,12 +65,12 @@ const BackupContainer = () => { }
- {(backupLimit > 0 && backups.items.length > 0) && + {(backupLimit > 0 && backups.pagination.total > 0) &&

- {backups.items.length} of {backupLimit} backups have been created for this server. + {backups.pagination.total} of {backupLimit} backups have been created for this server.

} - {backupLimit > 0 && backupLimit !== backups.items.length && + {backupLimit > 0 && backupLimit !== backups.pagination.total && }