Dashboard empty in UI

I tried to follow:

https://discourse.nodered.org/t/app-min-js-148-typeerror-cannot-read-property-themestate-of-undefined/28343/2?u=henrikjo

Which indicates that there is a bug in app.min.js

Tried the following but without success:

cd Downloads
wget share/app.min.js at master · martinLim45/share · GitHub
cd ..
cp Downloads/app.min.js ./node_modules/node-red-dashboard/dist/js/app.min.js
sudo reboot