(id, index)
| 169 | } |
| 170 | |
| 171 | export function destroyTopic(id, index) { |
| 172 | return dispatch => { |
| 173 | dispatch(destroy(index)); |
| 174 | return makeTopicRequest('delete', { |
| 175 | id: id |
| 176 | }); |
| 177 | // do something with the ajax response |
| 178 | // You can also dispatch here |
| 179 | // E.g. |
| 180 | // .then(response => {}); |
| 181 | }; |
| 182 | } |
| 183 |
no test coverage detected