fixed error in tasks

This commit is contained in:
Joshua Collins 2020-08-20 09:40:44 -04:00
parent 6da4adca25
commit 655343bbaf

View File

@ -38,7 +38,7 @@ const Tasks = () => {
}
obj.getAllTasksForAgent = (agentId) => {
const tasks = objs.tasks.filter(t => t.agentId === agentId)
const tasks = obj.tasks.filter(t => t.agentId === agentId)
return tasks.length !== 0
? tasks
: null