diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-06-02 08:49:30 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-06 11:40:09 +0200 |
commit | 64c2e946f4d17e877105116ddc6e02f9c2aa042b (patch) | |
tree | 370cd51990d5e4ab6fea6860bb146acc0e85e319 /settings/src/store/apps.js | |
parent | b4a7be20c8837d2ce74b082a6668b8896cf3318f (diff) | |
download | nextcloud-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.js | 7 |
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) => { |