mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 06:16:33 +00:00
Fixed bug when checking if a core is installed
`startsWith` was incorrect: `arduino:samd` Vs. `arduino:samd_beta` Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
c5796677f8
commit
7c2a295631
@ -159,7 +159,7 @@ export class BoardsServiceImpl implements BoardsService {
|
||||
|
||||
let items = resp.getSearchOutputList().map(item => {
|
||||
let installedVersion: string | undefined;
|
||||
const matchingPlatform = installedPlatforms.find(ip => ip.getId().startsWith(`${item.getId()}`));
|
||||
const matchingPlatform = installedPlatforms.find(ip => ip.getId() === item.getId());
|
||||
if (!!matchingPlatform) {
|
||||
installedVersion = matchingPlatform.getInstalled();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user