🏗️ Refactoring AirDC++ search method
This commit is contained in:
@@ -115,11 +115,11 @@ export const search = async (data: SearchData, ADCPPSocket: any) => {
|
|||||||
|
|
||||||
// The search can now be considered to be "complete"
|
// The search can now be considered to be "complete"
|
||||||
// If there's an "in progress" indicator in the UI, that could also be disabled here
|
// If there's an "in progress" indicator in the UI, that could also be disabled here
|
||||||
dispatch({
|
// dispatch({
|
||||||
type: AIRDCPP_HUB_SEARCHES_SENT,
|
// type: AIRDCPP_HUB_SEARCHES_SENT,
|
||||||
searchInfo,
|
// searchInfo,
|
||||||
instance,
|
// instance,
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
instance.id,
|
instance.id,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ export const AcquisitionPanel = (
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const getDCPPSearchResults = async (searchQuery) => {
|
const getDCPPSearchResults = async (searchQuery) => {
|
||||||
console.log(hubs);
|
|
||||||
const manualQuery = {
|
const manualQuery = {
|
||||||
query: {
|
query: {
|
||||||
pattern: `${searchQuery.issueName}`,
|
pattern: `${searchQuery.issueName}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user