don't send startPage in form json if it is disabled

This commit is contained in:
David Baldwynn 2017-03-11 11:57:55 -08:00
parent 653f1aada4
commit fcfea416e8
No known key found for this signature in database
GPG key ID: 15D1C13202224A9B

View file

@ -188,6 +188,10 @@ exports.readForRender = function(req, res) {
delete newForm.isLive;
delete newForm.admin;
if(!newForm.startPage.showStart){
delete newForm.startPage;
}
return res.json(newForm);
};