Updated

A 15-year-old girl in Michigan who was sent to a juvenile detention for not doing her homework was released from probation on Tuesday, according to a report.

Oakland Circuit Judge Mary Ellen Brennan dismissed the case based on a caseworker’s recommendation and that the girl, called “Grace” to protect her identity, continue receiving mental health treatment at home.

The girl in suburban Detroit was placed on probation in April because of allegations of assault and theft, and had been in Oakland County’s Children’s Village since May for violating that probation, which was first reported by ProPublica.

MICHIGAN GIRL SENT TO JUVENILE DETENTION FOR NOT DOING ONLINE SCHOOLWORK: REPORT

Brennan said a Michigan Court of Appeals decision July 31 ordering Grace’s release from Children’s Village effectively tied the lower court’s hands, The Detroit News reported. She said Grace appeared to be benefiting from the treatment she had received at the facility. No details of that treatment have been provided.

“This court’s goal to place her (in Children’s Village) was to address delinquent behavior and improve life at home for her and her mother,” Brennan said.

Among the requirements of her probation, Grace was expected to complete her schoolwork. Grace, who has ADHD and receives special education services, struggled with the transition to online learning and fell behind.

Brennan initially cited a “failure to submit to any schoolwork and getting up for school” for her decision to place the teen in juvenile detention.

GEORGIA SCHOOL DISTRICT QUARANTINES 925 STUDENTS, STAFF AFTER CORONAVIRUS REOPENING

But the judge said at a July 20 hearing in Pontiac that Grace was placed in the juvenile facility because she was a threat to her mother and that police had been called three times for confrontations between the two.

Brennan had said the girl was a threat to the community based on an assault allegation involving her mother in November, according to court documents. The girl was also accused of stealing a cellphone from a fellow student at Birmingham Groves High School in Beverly Hills, northwest of Detroit.

CLICK HERE FOR THE FOX NEWS APP

An attorney for Grace, Saima Khalil, accused Brennan of “callous conduct” during the case.

“You have deprived my client access to mental health treatment that was available through her school ... and this court publicly lambasted the child during a court hearing,” she had said.