Skip to content

Commit

Permalink
Save changes to pilot entries when editing is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Jan 25, 2017
1 parent 4851049 commit f6608d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/pilots/pilotsActions.js
@@ -1,5 +1,6 @@
import {
editExistingItem,
applyItemEdits,
stopEditingItem
} from "features/editing/editingActions";

Expand Down Expand Up @@ -42,6 +43,7 @@ export function stopEditingPilot() {
const currentPilot = selectCurrentPilot(getState());

dispatch({type : PILOT_EDIT_STOP});
dispatch(applyItemEdits("Pilot", currentPilot));
dispatch(stopEditingItem("Pilot", currentPilot));
}
}
}

0 comments on commit f6608d0

Please sign in to comment.