Steps
- Open the dashboard
- In Item Configuration, open the item’s menu and click Today’s Pathes.
- The window opens, then closes a fraction of a second later. Clicking it again right away keeps it open.
It happens whenever the RTT data has changed since the window was last opened, so usually on the first try.
Cause
In the dashboard page, showTodaysPathes_graphql(item) opens the window from its mxios_post(...).then() callback:
$("#showTodaysPathesModal").modal('toggle');
mxios_post (mudfish_axios_post.fire_main() in js/mudfish_20260502.js) can call that callback twice: once with the cached response from /do/axios/cache/get, and again with the fresh /graphql response when /do/axios/cache/put doesn’t return 304. The todayPathes RTT values change often, so the cache is usually out of date and the callback runs twice. The first toggle opens the window and the second closes it. On the next click the cache is current, cache/put returns 304, the callback runs once, and the window stays open.
Fix
In showTodaysPathes_graphql(), change .modal('toggle') to .modal('show'). Bootstrap’s show returns early if the modal is already open, so the second callback just updates the table with the fresh data.
I could be wrong about this, it’s just what I could observe from my side. I’m able to fix it by utilizing a userscript via Tampermonkey on my side but would probably be best to be fixed with a client update.