Sfoglia il codice sorgente

Fix bug for viewing all events when there are no societies

Matt Coles 9 anni fa
parent
commit
1cf6e696f5
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      presenters/event-controller.js

+ 6 - 0
presenters/event-controller.js

@@ -196,6 +196,12 @@ module.exports = {
196 196
               }
197 197
             }, true);
198 198
           }
199
+          if (event_objs.length === 0) {
200
+            complete({
201
+              "events": event_objs,
202
+              "error": 0
203
+            });
204
+          }
199 205
         });
200 206
       } else {
201 207
         complete({