added delete agent function

sig-changes^2
Joshua Collins 5 years ago
parent 144518da57
commit 955429f4ab
  1. 2
      app/store/agents.js

@ -42,7 +42,7 @@ const Agents = () => {
}
obj.deleteAgentById = (agentId) => {
const index = obj.findIndex(agent => agent.id === agentId)
const index = obj.agents.findIndex(agent => agent.id === agentId)
if (index !== -1) {
obj.splice(index, 1)
return true

Loading…
Cancel
Save