I am trying to populate _nav with data coming from my API. I have been scratching my head on this for a while and wanted to see if anyone could shed some light. Please see code below. It breaks when the sub items are being called by the subNav function.
I am trying to populate _nav with data coming from my API. I have been scratching my head on this for a while and wanted to see if anyone could shed some light. Please see code below. It breaks when the sub items are being called by the subNav function.