mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fixing up step 2.7 demo
This commit is contained in:
@@ -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]);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user