mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 22:36:32 +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 items = resp.getSearchOutputList().map(item => {
|
||||||
let installedVersion: string | undefined;
|
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) {
|
if (!!matchingPlatform) {
|
||||||
installedVersion = matchingPlatform.getInstalled();
|
installedVersion = matchingPlatform.getInstalled();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user