mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-23 02:29:34 +00:00
DigiKey: Skip empty values
This commit is contained in:
parent
9b8d4c518a
commit
a31f7d2414
1 changed files with 5 additions and 1 deletions
|
|
@ -210,6 +210,10 @@ class DigikeyProvider implements InfoProviderInterface
|
||||||
$footprint_name = $parameter['Value'];
|
$footprint_name = $parameter['Value'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array(trim($parameter['Value']), array('', '-'), true)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$results[] = ParameterDTO::parseValueIncludingUnit($parameter['Parameter'], $parameter['Value']);
|
$results[] = ParameterDTO::parseValueIncludingUnit($parameter['Parameter'], $parameter['Value']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -265,4 +269,4 @@ class DigikeyProvider implements InfoProviderInterface
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue