Macbook Pro doesn't detect USB-C monitor if something else is plugged in at the same time
I'm connecting a monitor via USB-C. However, if one of the other USB-C ports is occupied, my macbook doesn't detect the display. I have to unplug the other cable and plug in the monitor cable again for it to work. Once the monitor is connected, I can then connect the other cable again and there is no issue. How can I connect my monitor without having to disconnect the other cable each time?
MacBook Pro (M1, 2020)