Skip to content

Commit

Permalink
Allow state=0 requests to be saved so they can transition to 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonesy committed Jan 16, 2020
1 parent 745b68a commit b4f535c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/modules/requests/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function* onFinishEditing(action) {
};
const meta = { id };

if (!isEqual(request, payload)) {
if (!isEqual(request, payload) || payload.state === 0) {
yield put(
saveRequest(payload, meta, {
url: `/api/v2/requests/save/${id}`,
Expand Down

0 comments on commit b4f535c

Please sign in to comment.