summaryrefslogtreecommitdiffstats
path: root/settings/src/store/apps.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-06-02 08:49:30 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-06 11:40:09 +0200
commit64c2e946f4d17e877105116ddc6e02f9c2aa042b (patch)
tree370cd51990d5e4ab6fea6860bb146acc0e85e319 /settings/src/store/apps.js
parentb4a7be20c8837d2ce74b082a6668b8896cf3318f (diff)
downloadnextcloud-server-64c2e946f4d17e877105116ddc6e02f9c2aa042b.tar.gz
nextcloud-server-64c2e946f4d17e877105116ddc6e02f9c2aa042b.zip
Some code cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/src/store/apps.js')
-rw-r--r--settings/src/store/apps.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/src/store/apps.js b/settings/src/store/apps.js
index e6788faa029..97d7aaa6cb0 100644
--- a/settings/src/store/apps.js
+++ b/settings/src/store/apps.js
@@ -205,7 +205,12 @@ const actions = {
}
})
.catch((error) => {
- context.commit('setError', {appId: apps, error: t('settings', 'Error: This app can not be enabled because it makes the server unstable')});
+ if (!Array.isArray(appId)) {
+ context.commit('setError', {
+ appId: apps,
+ error: t('settings', 'Error: This app can not be enabled because it makes the server unstable')
+ });
+ }
});
})
.catch((error) => {