Custom Coding: Interaction not working in collection list after adding custom code

Hi there, I’m launching a website in a couple of weeks and am having trouble using a dropdown interaction in a collection list that I have attached to custom code. I am using two collection lists (one for categories and one for businesses) to create a large resource guide for a client. The code I’m using is able to push content I have in the business collection list into the category collection list making it organize businesses by categories (this is only visible after publishing the website).

The problem I’m having is that after the business collection items are in the correct categories, the dropdown interaction that each business item has does not work which I need for consolidating the page.

I would very much appreciate it if someone would help me figure out why the code I have is not working. Or if there’s a better method, directing me that way.

(this is my first time using support so let me know if I’m sending the share-link wrong)

This is the code I have in the tag


Here is my site Read-Only: https://preview.webflow.com/preview/resource-share-566711e260-38cd4ceee0e7a?utm_medium=preview_link&utm_source=dashboard&utm_content=resource-share-566711e260-38cd4ceee0e7a&preview=945c6d89630fad66893620e38344c3e8&workflow=preview

Anyone have an answer that can help me?