UPDATE: Valerie Jarrett, former adviser to President Barack Obama, responded to actress Roseanne Barr’s comment referring to her as an “ape” on Tuesday, saying ABC made the right decision in canceling its hit sitcom starring the actress.

"First of all, I think we have to turn it into a teaching moment. I’m fine. I’m worried about all the people out there who don’t have a circle of friends and followers coming to their defense,” Jarrett said during a town hall on MSNBC called “Everyday Racism in America.”

When asked if ABC made the right call in canceling the sitcom “Roseanne,” Jarrett said that the network did and that Bob Iger, the chief executive officer of Disney, had called her before the announcement.

Iger apologized, Jarrett said, adding that he told her there would be zero tolerance for those types of comments.

“He wanted me to know before he made it public that he was canceling the show,” she said.

ABC announced Tuesday that it was canceling the show after Barr referred to Jarrett as a "child" of the Muslim Brotherhood and "Planet of the Apes" in a tweet posted Tuesday. She later deleted the tweet.

"Roseanne's Twitter statement is abhorrent, repugnant and inconsistent with our values, and we have decided to cancel her show," read a statement from ABC Entertainment president Channing Dungey.

Barr later apologized on her Twitter account.

PREVIOUS STORY: NEW YORK (AP) — 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 Barr’s character expressed support for President Donald Trump.

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

She later apologized “for making a bad joke.”

PREVIOUS STORY: Comedian Roseanne Barr has apologized for comparing Valerie Jarrett, a former adviser to President Barack Obama, to an "ape" in a Twitter post.

In her tweet Monday morning, the actress was responding to an online claim that Obama had spied on French presidential candidates and a social media user accused Jarrett of helping Obama "hide a lot."

“Muslim brotherhood & planet of the apes had a baby=vj” Barr said in a tweet that has been deleted.

In another tweet, Barr apologized to Jarrett for a “bad joke” and asked for forgiveness.

“I apologize to Valerie Jarrett and to all Americans,” Barr said. “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.”

The post was part of a tweet storm by Barr, in which she also apologized to Chelsea Clinton for another tweet in which she described her middle name as "Soros," claiming the former first daughter was married to a nephew of George Soros whom Barr called a "racist" and "nazi" in another tweet.

Clinton responded to Barr, stating her middle name was "Victoria." After the apology, Barr admitted the mistake and made another jab at Clinton in a tweet saying she was “married to a son of a corrupt senator.”

The tweets come nearly a week after the season finale of the newly rebooted “Roseanne” on ABC. The show was the "highest rated and most watched series of the broadcast season," according to The Hollywood Reporter. Barr's tweet sparked backlash on social media, with users calling on ABC to fire the actress and suspend the show's production.

ABC Entertainment and The Walt Disney Company did not immediately respond to requests for comment.

This is a developing story. Please check back for updates.