NEW YORK: An old picture of Roseanne Barr dressed as Adolf Hitler, wearing a swastika and pulling burnt cookies from an oven, splashed on the front of the New York Daily News on Wednesday like a neon sign asking ABC executives: What were you thinking?

Given Barr’s past incidents of bad behavior and questionable social media posts, ABC faced questions Wednesday about why it went back into business with her before it all blew apart. ABC canceled its successful reboot of Roseanne on Tuesday following the star’s racist tweet likening former Obama adviser Valerie Jarrett to a cross between the Muslim Brotherhood and a Planet of the Apes actor.

Barr continued tweeting on Wednesday, at one point saying the offending tweet was composed at 2 a.m. after she took the insomnia drug Ambien. That led the drug maker Sanofi to say on social media that “racism is not a known side effect” of its product.

President Donald Trump, noting in a tweet that Robert Iger, CEO of ABC’s parent Walt Disney Co., had called Jarrett to apologize, wondered why ABC hadn’t apologized for “HORRIBLE statements made and said about me on ABC.”

On social media, Barr wrote that what she said was indefensible, then retweeted several statements others made supporting her. She apologized to those who had lost their jobs because of her action, but also condemned cast members who threw her under the bus, in her words.

“I’m not a racist, I never was & I never will be,” she wrote Wednesday. “One stupid joke in a lifetime of fighting 4 civil rights 4 all minorities, against networks, studios, at the expense of my nervous system/family/wealth will NEVER be taken from me.”

Yet many saw a disturbing pattern being followed instead of a joke. Questionable actions date back to a cringe-worthy, crotch-grabbing rendition of the national anthem in 1990; a claim, later recanted, that she was an incest survivor; and the 2009 picture reprinted on the Daily News. Her social media past includes a racist tweet about former national security adviser Susan Rice and support for conspiracy theories like “pizzagate.” On the same night as her Jarrett tweet, she posted a false claim about Chelsea Clinton that Clinton refuted.

ABC executives were not discussing their thought processes on Wednesday. It’s clear, though, that Barr’s social media habits were a sore point. She told USA Today earlier this year that “I had to get off social media because everybody’s mad at me.”

Was ABC’s gamble worth the risk to its reputation? Opinion writer Roxane Gay wrote Wednesday in the New York Times that ABC did the right in canceling Roseanne. “But before it did the right thing, it did the wrong thing,” she said.

“Everyone involved made a decision to support the show despite its co-creator’s racism,” Gay wrote. “They decided that their career ambitions, or desire to return to network television, or financial interests would best be served by looking the other way. It was only when Ms. Barr became an immediate liability that everyone involved finally looked at her racism and dealt with it directly.”