Skip to content

Commit f6608d0

Browse files
committed
Save changes to pilot entries when editing is stopped
1 parent 4851049 commit f6608d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/features/pilots/pilotsActions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
editExistingItem,
3+
applyItemEdits,
34
stopEditingItem
45
} from "features/editing/editingActions";
56

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

4445
dispatch({type : PILOT_EDIT_STOP});
46+
dispatch(applyItemEdits("Pilot", currentPilot));
4547
dispatch(stopEditingItem("Pilot", currentPilot));
4648
}
47-
}
49+
}

0 commit comments

Comments
 (0)