Chia-Network / chia-blockchain-gui

Chia blockchain GUI in electron/react
https://chia.net
Apache License 2.0
332 stars 246 forks source link

[BUG] Cannot read properties of null (reading 'map') #821

Closed grrr32 closed 2 years ago

grrr32 commented 2 years ago

What happened?

Tried adding a plot directory with the add plot directory btn in the gui.

Version

1.3.5

What platform are you using?

Windows

What ui mode are you using?

GUI

Relevant log output or stacktrace

Cannot read properties of null (reading 'map')

URL
#/dashboard/plot

Stacktrace
at webpack://@chia/gui/src/components/plot/PlotAddDirectoryDialog.tsx:95:25 map
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:157:136 Ch
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:180:153 oi
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:269:342 a=b.pendingProps;f=e._init;e=f(e._payload);b.type=e;f=b.tag=hk(e);a=lg(e,a);switch
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:250:346 Pj
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:250:277 Pj
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:250:137 Pj
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:243:162 Lj
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:123:114 jg
at webpack://@chia/gui/node_modules/scheduler/cjs/scheduler.production.min.js:18:342 unstable_next
grrr32 commented 2 years ago

I assume that this occurred due to the 'plot directories' entry in config.yaml had a null value after deleting plot

seeden commented 2 years ago

This issue was fixed in the latest 1.4 version. Please upgrade your version