Well … that’s a BIG chunk of code to digest … and the error message is pretty much unreadable …
So before we continue could you please go back to your question, edit it once again and fix the formatting of your code and post the plain text of your error message formatted as code as well instead of the image of it?
When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thanks in advance
Guide to Posting Code - Redux <---- Click
![]()
( !! Sometimes the preformatted text button hides behind the settings gear symbol.
)