That is nonsense. Of course Trump's racism affects his judgement. His last campaign was designed to energize cowardly racists. That's apparently how he sees his base, as cowardly racists.
Trump's Midterm Closing Argument: Pure Racial Fear
It was so bad, that even the propaganda wing of the Trump administration, FOX News, refused to carry an ad
Fox News, NBC, and Facebook pulled Trump's racist campaign ad
Trump has publicly supported the KKK and Neo Nazis:
Trump Defends White-Nationalist Protesters: 'Some Very Fine People'
This was a rally that was:
1. Organized by White Supremacists.
2. Had the stated purpose of uniting White Supremacists across the nation.
3. Had these guys there:
And...
There were no "very fine people" there. No "very fine person" would show up at a rally hosted by White Supremacists, whose stated purpose was to unite White Supremacists, and if they accidentally did, they would leave when they saw the above people.
And of course, Neo Nazis and the KKK love Trump for his support:
Hail Trump: White nationalists mark Trump win with Nazi salute
And unfortunately, none of this is new for Trump.
Trump Has A Long And Well-Documented History Of Racist Behavior
No vacancies for Blacks
Do I need to go on? Because there is a lot more, obviously. Trump's racism is blatantly obvious to anyone who uses their eyes and ears.