diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-07-29 12:08:55 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-09-04 09:43:28 +0200 |
commit | 4b2619530b72a0db802bd91619b723c72c867d52 (patch) | |
tree | 3df194e0892c6bfbf477336f7ad97671febdefbe /apps/files_external | |
parent | 1b3e95652ce31cfb0321f5f458a037a048d327d3 (diff) | |
download | nextcloud-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.js | 3 |
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 |