Skip to content

Commit 922963e

Browse files
add key check in board user fields logic
1 parent 99d1a7b commit 922963e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

arduino-ide-extension/src/browser/contributions/upload-sketch.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ export class UploadSketch extends CoreServiceContribution {
6161
registry.registerCommand(UploadSketch.Commands.UPLOAD_SKETCH, {
6262
execute: async () => {
6363
const key = this.selectedFqbnAddress();
64-
if (this.boardRequiresUserFields && !this.cachedUserFields.has(key)) {
64+
if (
65+
this.boardRequiresUserFields &&
66+
key &&
67+
!this.cachedUserFields.has(key)
68+
) {
6569
// Deep clone the array of board fields to avoid editing the cached ones
6670
this.userFieldsDialog.value = (
6771
await this.boardsServiceProvider.selectedBoardUserFields()

0 commit comments

Comments
 (0)