He had a grand jury indictment, arrest, and trial while he was running for President, the conviction hitting one month after the election.
If the argument is “well, you can’t be tried while campaigning” that would block perennial candidates, who are ALWAYS running, would never fall under prosecution.