Merge branch 'master' of github.com:Microsoft/frontend-bootcamp

This commit is contained in:
Ken
2019-03-04 11:46:27 -08:00

View File

@@ -3,7 +3,7 @@ import { TodoListItem } from './TodoListItem';
export class TodoList extends React.Component<any, any> {
render() {
const { filter, todos } = this.props;
const { filter, todos = {} } = this.props;
// filteredTodos returns an array of filtered todo keys [01,02,03]
const filteredTodos = Object.keys(todos).filter(id => {