Permalink
Browse files

Save changes to pilot entries when editing is stopped

  • Loading branch information...
markerikson committed Jan 22, 2017
1 parent 4851049 commit f6608d0fdb9420e94d1d56e535c06902a9200645
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/features/pilots/pilotsActions.js
@@ -1,5 +1,6 @@
import {
editExistingItem,
+ applyItemEdits,
stopEditingItem
} from "features/editing/editingActions";
@@ -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.