diff --git a/arduino-ide-extension/src/browser/boards/boards-toolbar-item.tsx b/arduino-ide-extension/src/browser/boards/boards-toolbar-item.tsx index 7acc2239..38e0df3f 100644 --- a/arduino-ide-extension/src/browser/boards/boards-toolbar-item.tsx +++ b/arduino-ide-extension/src/browser/boards/boards-toolbar-item.tsx @@ -139,13 +139,13 @@ export class BoardsToolBarItem extends React.Component { + this.attachedBoards = attachedBoards.boards; + if (this.attachedBoards.length) { + this.createBoardDropdownItems(); + this.props.boardService.selectBoard(this.attachedBoards[0]).then(() => this.setSelectedBoard(this.attachedBoards[0])); + } + }) } protected createBoardDropdownItems() {