This isn't correct. It was thrown out because the Democrats lacked standing. It wasn't ruled on the merits: a standing argument means you are not eligible to bring a case yourself.
It's not even a sensible argument: salary is a nominal sum the government pays the president. Emoluments are gifts from foreigners. There's no logical relationship between salary and gifts.
https://www.cnn.com/2020/02/07/politics/emoluments-lawsuit-t...
I think people are letting their disdain for him cloud their judgement. Also innocent until proven guilty.