mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 07:19:07 +00:00
Minor Type error fix
- Added additional readme information
This commit is contained in:
parent
80562899f3
commit
1fb4fc89f2
2 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue