aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-29 12:08:55 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2024-09-05 04:18:36 +0200
commitfc93517fc5b42da57f72353f96f95dde5314646f (patch)
treef536c5feea895fba9a30535f8662b4363941b443
parente43af1da715bc511d2513279c666a8a5c8475771 (diff)
downloadnextcloud-server-fc93517fc5b42da57f72353f96f95dde5314646f.tar.gz
nextcloud-server-fc93517fc5b42da57f72353f96f95dde5314646f.zip
refactor: Store result in its own variable
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-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 30bf85a6764..e1d47dbdc89 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -981,9 +981,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