I haven't been able to understand why this broke. How do I solve this?
I don't know if this helps describe what is being flagged, This is the JS code at 809:
code at 1870:
code at 2294:
The code at 2303 is a closing curly bracket.
This is the only error in the console for the whole store. The only side effect appears to be in media breaks where the cat tree menu is collapsed. The open button ( + ) is even hidden.
Scott
Code:
Uncaught TypeError: Cannot read properties of null (reading 'querySelectorAll') at S.fn.init.$.fn.transfigureNavigation (json.mvc?Store_Code=S&Function=JavaScriptCombined Resource_Output&JavaScriptCombinedResource_Code=sc ripts&T=577a8120:809:45) at Object.init (json.mvc?Store_Code=S&Function=JavaScriptCombined Resource_Output&JavaScriptCombinedResource_Code=sc ripts&T=577a8120:1870:27) at json.mvc?Store_Code=S&Function=JavaScriptCombinedR esource_Output&JavaScriptCombinedResource_Code=scr ipts&T=577a8120:2294:21 at json.mvc?Store_Code=S&Function=JavaScriptCombinedR esource_Output&JavaScriptCombinedResource_Code=scr ipts&T=577a8120:2303:2
Code:
$.fn.transfigureNavigation = function (container) { const navigationExtension = document.querySelector('[data-hook="transfigure-navigation"]'); const topLevelLinks = navigationExtension.querySelectorAll('.x-transfigure-navigation__link'); let clientPort = document.documentElement.clientWidth; let waitForIt;
Code:
/** * Initialize the Transfigure Navigation extension */ $.hook('has-drop-down').transfigureNavigation();
Code:
/** * Initialize Extensions Functions */ themeFunctionality.init();
This is the only error in the console for the whole store. The only side effect appears to be in media breaks where the cat tree menu is collapsed. The open button ( + ) is even hidden.
Scott
Comment