Skip to content

Commit 3490679

Browse files
committed
fix: model property sometimes missing on board
1 parent 8d85aa9 commit 3490679

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderer/src/store/flash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const useFlashStore = () => {
6969

7070
const config = JSON.parse(configFileString) as ReswarmConfig
7171
const board = boardStore.boards.find(
72-
(b) => b.model === config.board.model
72+
(b) => b.model === config?.board?.model
7373
) as SupportedBoard
7474

7575
// It can happen that the boards are not intialized (e.g. when opening Reflasher with .reswarm file)

0 commit comments

Comments
 (0)