We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39b7f2d + 3490679 commit 01977cdCopy full SHA for 01977cd
1 file changed
src/renderer/src/store/flash.ts
@@ -69,7 +69,7 @@ export const useFlashStore = () => {
69
70
const config = JSON.parse(configFileString) as ReswarmConfig
71
const board = boardStore.boards.find(
72
- (b) => b.model === config.board.model
+ (b) => b.model === config?.board?.model
73
) as SupportedBoard
74
75
// It can happen that the boards are not intialized (e.g. when opening Reflasher with .reswarm file)
0 commit comments