Skip to content

Commit c2f401d

Browse files
authored
Merge pull request #5 from madmax983/Todo-BugFix
Fixed a bug in the Todo Example. New Unmanaged Package link.
2 parents 422a3ac + 0be69cf commit c2f401d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ middleware: You can include redux middleware like redux-thunk here. Lightning-Re
3030
## Installation
3131
Lightning-Redux Unmanaged Packaged (Redux Component, redux and redux-thunk static resource): https://login.salesforce.com/packaging/installPackage.apexp?p0=04t50000000M7PT
3232

33-
Lightning-Redux-Examples (Counter and Todo Examples unmanaged package): https://login.salesforce.com/packaging/installPackage.apexp?p0=04t50000000M7Pi
33+
Lightning-Redux-Examples (Counter and Todo Examples unmanaged package): https://login.salesforce.com/packaging/installPackage.apexp?p0=04t50000000M7Pn
3434

3535
Otherwise, you can use the SFDX CLI to convert the source and do a metadata deploy.
3636

force-app/examples/default/aura/NewTodoItem/NewTodoItemHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
var status = component.get("v.completed");
9292
var currentTodo = component.get("v.todo");
9393
state.todos.map(function(todo) {
94-
if(currentTodo.Id === todo.Id) {
94+
if(currentTodo && currentTodo.Id && currentTodo.Id === todo.Id) {
9595
status = todo.Completed__c;
9696
}
9797
});

0 commit comments

Comments
 (0)