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:
Akos Kitta 2019-08-12 11:40:39 +02:00
parent c5796677f8
commit 7c2a295631

View File

@ -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();
}