Skip to content

Commit

Permalink
"" ""
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarthsimpson committed Feb 23, 2023
1 parent aa2b65e commit 0cee491
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class BoardsServiceProvider
boardToAutoSelect = {
...boardToAutoSelect,
name:
boardToAutoSelect.name === Unknown
boardToAutoSelect.name === Unknown || !boardToAutoSelect.name
? name
: boardToAutoSelect.name,
fqbn: boardToAutoSelect.fqbn || fqbn,
Expand Down Expand Up @@ -381,7 +381,7 @@ export class BoardsServiceProvider
const { name, fqbn } = this.latestValidBoardsConfig.selectedBoard;
this.boardsConfig = {
selectedBoard: {
name: board.name === Unknown ? name : board.name,
name: board.name === Unknown || !board.name ? name : board.name,
fqbn: board.fqbn || fqbn,
port: board.port,
},
Expand Down

0 comments on commit 0cee491

Please sign in to comment.