Removing "Rubbish Bin" from Ubuntu Dock on 21.10

The trash icon on the dock was broken for me, if I right clicked on it, an empty pop-up menu would come up in the upper left corner of the screen, this menu would remain in the foreground even when switching apps (I had to log out to get rid of it)

Luckily, it was easy to get rid of the rubbish bin icon, I just had to type in the terminal:

gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false