()
| 172 | |
| 173 | |
| 174 | const reloadTable = ()=>{ |
| 175 | if (key === 'todo') { |
| 176 | todoActionRef.current?.reload(); |
| 177 | } |
| 178 | if (key === 'done') { |
| 179 | doneActionRef.current?.reload(); |
| 180 | } |
| 181 | if (key === 'initiated') { |
| 182 | initiatedActionRef.current?.reload(); |
| 183 | } |
| 184 | if (key === 'timeoutTodo') { |
| 185 | timeoutTodoActionRef.current?.reload(); |
| 186 | } |
| 187 | if (key === 'postponedTodo') { |
| 188 | postponedTodoActionRef.current?.reload(); |
| 189 | } |
| 190 | if (key === 'all') { |
| 191 | allTodoActionRef.current?.reload(); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | useEffect(() => { |
| 196 | reloadTable(); |
no outgoing calls
no test coverage detected