mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-12-20 14:07:17 +00:00
fix: board <select> update on board detach
When the previously selected board is not detected, unset the `<select>` option. Closes #2222 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
@@ -104,6 +104,7 @@ export const FirmwareUploaderComponent = ({
|
||||
const onItemSelect = React.useCallback(
|
||||
(item: BoardListItemWithBoard | null) => {
|
||||
if (!item) {
|
||||
setSelectedItem(null);
|
||||
return;
|
||||
}
|
||||
const board = item.board;
|
||||
|
||||
Reference in New Issue
Block a user