Fix private lists page
Oops, I pulled `currentUserId` from the wrong place, so it was always acting as if you're logged in! Now, you can see the list page for your own private list!
This commit is contained in:
parent
d386ccfad8
commit
3cd0ffd764
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ const resolvers = {
|
|||
},
|
||||
|
||||
Query: {
|
||||
closetList: async (_, { id, currentUserId }, { closetListLoader }) => {
|
||||
closetList: async (_, { id }, { currentUserId, closetListLoader }) => {
|
||||
// TODO: Accept the `not-in-a-list` case too!
|
||||
const closetList = await closetListLoader.load(id);
|
||||
if (!closetList) {
|
||||
|
|
Loading…
Reference in a new issue