Having exactly the same problem.
Going into Production Block -> clicking "Factory" and "Module" tabs is working great -> clicking "Factory" and "Beacon" tabs gives mentioned error.
I've dig around a little bit, but was unable to fix it. Most glaring issue is how ui element looks up during event update. {"menu":"HMMainMenuPanel","left":"HMLeftMenuPanel","data":"block_1"} , while this is ui during switching of properly working panels: ui"{"menu":"HMMainMenuPanel","left":"HMLeftMenuPanel","data":"HMProductionBlockTab","dialog":"HMRecipeEdition"}
Nil is this case is obviously trying to access 'views["block_1"]; which obviously doesn't exist nor should it. My candidates for fix were function onEventAccessAll()
where we have this: if action == "change-tab" then
ui.data = item
ui.dialog = helmod_tab_dialog[item]
and parameters for this event are item='block_1', item2='R1', item3='beacon', which is wrong. However trying to send proper parameter to this didn't work. So I figured problem must lay on higher level.
On higher level in AbstractEdition.lua changing 'change-tab' to 'change-panel' in updateTabMenu()
function was not enough. Well. it stopped crashing but it changes between tabs in wrong panel. Can't really locate how to point to proper tabs.