nwplus/admin

[BUG] CMS crashes when viewing "Sponsors" tab for a hackathon

Closed this issue · 1 comments

Describe the bug

As described in the title!

Steps to reproduce

  1. Go to admin portal and choose a hackathon from the sidebar
  2. Click on the "Sponsor" tab
  3. Page crashes + console errors

Expected behavior

Page should not crash and load normally.

Screenshots/Videos

image

No code change required. The problem was that we added a bunch of sponsors "manually" and were missing some key fields (eg. last modified by) that would crash the page on render. From now on we should always add sponsors through admin console!

To fix this you should purge the collection of sponsors for the affected hackathon(s) and then start fresh from admin.