From e7f3f669dd0e2098203afdf262d7cffeac7fd976 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 6 May 2019 15:12:54 +0200 Subject: [PATCH] Fixed an issue where users without user profiles would fail to load their libraries --- app/client/views/library/libraries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/views/library/libraries.js b/app/client/views/library/libraries.js index 287562414..b8dbf11d8 100644 --- a/app/client/views/library/libraries.js +++ b/app/client/views/library/libraries.js @@ -9,7 +9,7 @@ Template.libraries.helpers({ {readers: userId}, {writers: userId}, {owner: userId}, - {_id: {$in: subs}} + {_id: {$in: subs || []}} ], }, { sort: {name: 1},