Minor Type error fix

- Added additional readme information
This commit is contained in:
adro 2023-11-07 14:21:01 +01:00
parent 80562899f3
commit 1fb4fc89f2
2 changed files with 9 additions and 1 deletions

View file

@ -5,7 +5,7 @@ const GetHardwareInterfaces: SearchProvider = async (o) => {
let res = await apiCall('network.links.list', {});
if (res.Error === null) {
console.debug('links', res.Data);
return Object.fromEntries(res.Data.map(r => [r.name, { display: r.name }]));
return Object.fromEntries(res.Data.map((r: any) => [r.name, { display: r.name }]));
} else {
console.debug('error', res);
return {} as Options;