aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-29 12:08:55 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-09-04 09:43:28 +0200
commit4b2619530b72a0db802bd91619b723c72c867d52 (patch)
tree3df194e0892c6bfbf477336f7ad97671febdefbe /apps/files_external
parent1b3e95652ce31cfb0321f5f458a037a048d327d3 (diff)
downloadnextcloud-server-4b2619530b72a0db802bd91619b723c72c867d52.tar.gz
nextcloud-server-4b2619530b72a0db802bd91619b723c72c867d52.zip
refactor: Store result in its own variable
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/js/settings.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 52dd3b6bf90..3db2e67763a 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -977,9 +977,10 @@ MountConfigListView.prototype = _.extend({
data: {'testOnly' : true},
contentType: 'application/json',
success: function(result) {
+ result = Object.values(result);
var onCompletion = jQuery.Deferred();
var $rows = $();
- Object.values(result).forEach(function(storageParams) {
+ result.forEach(function(storageParams) {
var storageConfig;
var isUserGlobal = storageParams.type === 'system' && self._isPersonal;
storageParams.mountPoint = storageParams.mountPoint.substr(1); // trim leading slash