FIX: Allow admins to access data explorer if no groups list is present

FIX: Allow admins to access data explorer if no groups list is present

diff --git a/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6 b/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6
index a6a2291..39d1213 100644
--- a/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6
+++ b/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6
@@ -22,7 +22,7 @@ export default Discourse.Route.extend({
               query.markNotDirty();
               query.set(
                 "group_names",
-                query.group_ids
+                (query.group_ids || [])
                   .map(id => groupNames[id])
                   .filter(n => n)
                   .join(", ")

GitHub sha: b8c96afe

1 Like