🌄 Fixes to card component, and adding a key to DC++ search result rows

This commit is contained in:
2021-09-04 15:30:58 -07:00
parent cdd27a1272
commit bacde33567
5 changed files with 31 additions and 19 deletions

View File

@@ -71,8 +71,6 @@ export const search = (data: SearchData) => async (dispatch) => {
async (searchInfo) => {
await sleep(5000);
// Check the number of received results (in real use cases we should know that even without calling the API)
const currentInstance = await SocketService.get(
`search/${instance.id}`,
@@ -94,10 +92,6 @@ export const search = (data: SearchData) => async (dispatch) => {
// Finally, perform the actual search
await SocketService.post(`search/${instance.id}/hub_search`, data);
// removeSearchesSentListener();
// removeSeachResultAddedListener();
// removeSearchResultUpdatedListener();
} catch (error) {
console.log("ERO", error);
throw error;