Rapper Cardi B appears at her criminal court arraignment, in the Queens Borough of New York, Friday Dec. 7, 2018, for misdemeanor reckless endangerment and assault charges during a melee in at a New York strip club. She appeared in court wearing long rainbow hair and Christian Louboutin boots, along with a floppy hat and a fur-trimmed jacket. (Peter Foley/Pool Photo via AP)

NEW YORK - A New York judge on Friday ordered rapper Cardi B to have no contact with two bartenders she allegedly attacked in a strip-club brawl, but allowed her to remain free after she skipped a court appearance earlier in the week.

Queens Criminal Court Judge Scott Dunn allowed the hip-hop star, whose real name is Belcalis Almanzar, to remain free without bail, a spokeswoman from the Queens District Attorney's Office said. The judge had threatened to have her arrested for not showing up in court on Monday.

The rapper got some more good news on Friday. Her single, "I Like It," was nominated for a Grammy Award.

Cardi B, 26, is charged with reckless endangerment, harassment and assault for allegedly throwing bottles and chairs in the Angels NYC strip club in the New York City borough of Queens after getting into an argument with two of the club's bartenders early on the morning of Aug. 29, according to police.

The singer had accused one of the bartenders of having an affair with her husband, Offset, a member of the rap trio Migos, local media have reported.

The couple was in the news earlier this week when Cardi B announced on Instagram that she had broken up with Offset, whose real name is Kiari Cephus.

Cardi B's lawyer, Jeff Kern, did not immediately respond to a request for comment, nor did Joe Tacopina, an attorney representing the two bartenders.

She is due back in court on Jan. 31 to face the misdemeanour charges. She could serve up to one year in prison, if found guilty.

The rapper received a total of five Grammy Award nominations on Friday.