🔧 Refactoring AcquisitionPanel

This commit is contained in:
2023-11-27 21:34:34 -05:00
parent 9859dbdeab
commit 4650bedbcf
2 changed files with 41 additions and 251 deletions

View File

@@ -39,7 +39,7 @@ export const AirDCPPHubsForm = (): ReactElement => {
queryFn: async () => await airDCPPSocketInstance.get(`hubs`),
});
let hubList = {};
if (hubs) {
if (!isNil(hubs)) {
hubList = hubs.map(({ hub_url, identity }) => ({
value: hub_url,
label: identity.name,