Tesla on Wednesday dropped a lawsuit against a California county

Tesla on Wednesday dropped a lawsuit against a California county that had barred the electric car company from reopening one of its factories.

The lawsuit, filed in early May against Alameda County, sought an injunction that would allow it to operate immediately, alleging the county violated the due process and equal protection clauses of the 14th Amendment.

The Fremont, Calif., plant closed in March, shortly after Gov. Gavin Newsom (D) issued a statewide stay-at-home order.

Earlier this month, California updated its guidance on manufacturing, allowing some factories to reopen but giving precedence to county-level restrictions.

Alameda County and five other Bay Area counties opted to keep factories closed.

Tesla then announced it would reopen the plant anyway and sued the county.