The very first problem couldn't be submitted
Vishal1541 opened this issue · 0 comments
Vishal1541 commented
When the total_questions
is empty, it throws an error Cannot read property 'totalProblems' of null
. Just add a check before saving into the collection.
File: ./controls/admin.js
Function: addQuestion