A state appeals court has reversed the dismissal of a former nursing supervisor’s gender discrimination claim brought under city’s Human Rights Law—pointing out the contradiction of a lower court dismissing that claim while allowing a related hostile-work-environment-due-to-sexual-harassment claim to go forward.

“The [lower] court should not have dismissed the claim of gender discrimination while sustaining the claim of hostile work environment due to sexual harassment,” an Appellate Division, First Department panel wrote in its opinion in Crookendale v. New York City Health and Hospitals issued Tuesday.