ABC has canceled its hit reboot of “Roseanne” following her racist tweet about former Obama adviser Valerie Jarrett.

ABC Entertainment President Channing Dungey says the comment “is abhorrent, repugnant and inconsistent with our values, and we have decided to cancel the show.”

The “Roseanne” revival this spring was an unexpected major hit for ABC. It was particularly popular among many conservative viewers because Roseanne Barr’s character expressed support for President Donald Trump.

SEE ALSO: Canceled: Blue-collar ‘Roseanne’ family reflected perspective of Trump voters

Ms. Barr’s tweet suggested that Ms. Jarrett is a product of the Muslim brotherhood and the “Planet of the Apes.”

She later apologized “for making a bad joke.”

Earlier, Ms. Barr announced Tuesday she’s leaving Twitter after comparing a former Obama adviser to an ape.

SEE ALSO: ‘Roseanne’: The hazards of social media for celebrities, journalists, politicians

“I apologize to Valerie Jarrett and to all Americans. I am truly sorry for making a bad joke about her politics and her looks. I should have known better. Forgive me-my joke was in bad taste,” Ms. Barr tweeted.

Her tweet referred to Ms. Jarrett, who is black, as a product of the Muslim Brotherhood and “Planet of the Apes.” The tweet appears to have been deleted.

Ms. Jarrett served as senior adviser to former President Barack Obama.

Comic Wanda Sykes, who was a consulting producer for the show, announced that she would not return to work on the program.

The show is on hiatus for the summer after wrapping up the season last week.

— Material from the Associated Press was used in this report.