Skip to content

Commit 01977cd

Browse files
authored
Merge pull request #13 from RecordEvolution/bugfix/model-missing-on-board
fix: model property sometimes missing on board
2 parents 39b7f2d + 3490679 commit 01977cd

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)