Back in 2016, Eliza was cast in a recurring role as lawyer J.P. Nunnelly for Season 1 of CBS's new show Bull. It was meant as a regular role, but she ended up being fired. According to Eliza, she was only fired because she accused its star, Michael Weatherly, of sexual harassment.
According to the New York Times, a lawsuit stemming from those accusations resulted in Eliza being paid roughly $9.5 million settlement from CBS.
In the suit, she alleged that Michael made inappropriate comments and gestures toward her, and that at the time when she approached producers about what was going on, she was written off the cast as opposed to the situation being resolved.
Michael apologized for his actions, per that same New York Times piece, but maintained that he had nothing to do with Eliza being fired: "It’s my recollection that I didn’t tell anyone how they should do their job regarding the hiring or firing of anybody."