don't send startPage in form json if it is disabled
This commit is contained in:
parent
653f1aada4
commit
fcfea416e8
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue