[Website Template] Archive Block issue when unpublishing a doc #5611
-
I am having issues with the Archive block. Everything works fine except the Draft functionality. If I add a draft to any collection included on the archive block it throws an error when I try to fetch the page that has the Archive Block and it ends as a "404 Not Found". On the payload side, I get the following error: ERROR (payload): Error: Cannot return null for non-nullable field Archive.populatedDocs. Which seems to be an issue with breaking GraphQL rules for the required field "populatedDocs". I think it might have to do with the afterRead Hook for populating docs but when I looked into it, it seemed to be returning an array of documents just fine. I am at a bit of a loss on how to troubleshoot this issue so I was hoping to get some insight here. Thank you Edit: I did a fresh install of the website template following the instructions on the template readme using the npx command. Without any changes on this fresh install, I am running on the same issue so I will raise this into a bug for the template |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This has been fixed here: |
Beta Was this translation helpful? Give feedback.
This has been fixed here:
#5643