SyntaxFix
Write A Post
Hire A Developer
Questions
Ive come across this many times in my work, an easy work around that I found is to ask if the array element is a Hash by class.
if i.class == Hash notation like i[:label] will work in this block and not throw that error end