fixing up step 2.7 demo

This commit is contained in:
Ken
2019-03-03 20:14:51 -08:00
parent c2c5b99920
commit 74aeb5ad4b
8 changed files with 34 additions and 39 deletions

View File

@@ -44,7 +44,7 @@ export const actionsWithService = {
edit: (id: string, label: string) => {
return async (dispatch: any, getState: () => Store) => {
dispatch(actions.complete(id));
dispatch(actions.edit(id, label));
await service.update(id, getState().todos[id]);
};
}