backups: fix incorrect "memoryLimit must be a number" error

This commit is contained in:
Girish Ramakrishnan
2024-07-14 18:21:12 +02:00
parent ba99e3b9b7
commit 704999a05f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -542,7 +542,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
const limits = $scope.backupConfig.limits || {};
$scope.configureBackup.memoryLimit = Math.max(limits.memoryLimit, $scope.MIN_MEMORY_LIMIT);
$scope.configureBackup.memoryLimit = limits.memoryLimit ? Math.max(limits.memoryLimit, $scope.MIN_MEMORY_LIMIT) : $scope.MIN_MEMORY_LIMIT;
$scope.configureBackup.uploadPartSize = limits.uploadPartSize || ($scope.configureBackup.provider === 'scaleway-objectstorage' ? 100 * 1024 * 1024 : 10 * 1024 * 1024);
$scope.configureBackup.downloadConcurrency = limits.downloadConcurrency || ($scope.backupConfig.provider === 's3' ? 30 : 10);
$scope.configureBackup.syncConcurrency = limits.syncConcurrency || ($scope.backupConfig.provider === 's3' ? 20 : 10);