UI issue when closing crafting screen

On A24 unstable most of the time when I close the crafting screen this error pops:

release-798 (x64)[M]
Uncaught TypeError: Cannot read property ‘removeClass’ of undefined
TypeError: Cannot read property ‘removeClass’ of undefined
at n._setPreviewStyling (http://radiant/stonehearth/ui/game/show_workshop/show_team_workshop.js:693:30)
at invoke (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:7142)
at n.flush (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:7689)
at a.end (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:2462)
at http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:1288

If I hit ESC to close the screen it won’t happen but if I use the X button it will