Skip to content

Commit

Permalink
🎨 submit and suns data removed
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed Aug 1, 2016
1 parent 57f173f commit 4ca1be6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/routes/workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ const routes = application => {
// grab values from response
const data = revision.value;

// clear extraneous values
const remove = ['sunrise-date', 'sunrise-time', 'sunset-time', 'sunset-date', 'submit'];
remove.forEach(rmv => {
delete data[rmv];
});

// grab the number for the next step in approval workflow
const approval = revision.approval - 1;

Expand All @@ -109,6 +115,7 @@ const routes = application => {
return workflows.model().then(model => {
return content.only('workflow', values, model).then(merged => {
return content.form(merged, errors).then(form => {
console.log(data);
res.render('content/approval', {
title: `${config.content.actions.approve} :: ${req.params.type}`,
form,
Expand Down

0 comments on commit 4ca1be6

Please sign in to comment.