Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
There were two console errors that were raised when a user navigated away from the inventory list before if finished loading.
inventory_list_controller.js:381 Uncaught TypeError: Cannot read properties of null (reading 'getElementsByTagName')
inventory_list_controller.js:1636 Asked to addToGridMenu, but gridMenuScope not present. Timing issue? Please log issue with ui-grid
What's this PR do?
Assigns document.getElementById(elementId) to a new variable (element) on page load prior to executing the interval, allowing the delayed code to access the values and functions of element
Checks for the presence of the gridMenuScope before attempting to add to it.
How should this be manually tested?
Navigate to the inventory list, and just as the spinner appears navigate away. Monitor the console
Any background context you want to provide?
There were two console errors that were raised when a user navigated away from the inventory list before if finished loading.
What's this PR do?
document.getElementById(elementId)
to a new variable (element
) on page load prior to executing the interval, allowing the delayed code to access the values and functions ofelement
gridMenuScope
before attempting to add to it.How should this be manually tested?
Navigate to the inventory list, and just as the spinner appears navigate away. Monitor the console
What are the relevant tickets?
4478
4333
Screenshots (if appropriate)