BUFFALO, N.Y. -- Late Thursday afternoon, state Supreme Court Justice Patrick McAllister threw out New York state's redistricting maps for both the state Legislature and Congress this year.

State Senate Minority Leader Rob Ortt, R-North Tonawanda, said the judge's decision was the right one.

"Democrats didn't follow the law. They didn't follow the process. They didn't follow the New York state constitution and that's why he tossed out all the maps, every single one of them. He said they're banned. You cannot use them in 2022," Ortt said.

McAllister ruled the Independent Redistricting Commission and Legislature did not do its job under the constitution because the commission did not submit two sets of maps to the Legislature before lawmakers took over the process of drawing new lines.

The judge ordered the Legislature now draw and approve new maps with bipartisan support by April 11 or he will appoint someone to do the job. Ortt said he's reaching out to his Democratic colleagues.

"We want to work with you. Work with us to draw maps, not only to adhere to the judge's ruling but to adhere to the will of the people of the New York. That's what should happen. That's what a judge wants to happen and that's what they should do," he said.

However, New York Law School professor and redistricting veteran Jeff Wice said he doesn't agree with the judge's interpretation.

"My interpretation of the state constitutional provisions indicate, tell me that if the commission does or doesn't do its job, at whatever point in time it completes its work, whether it succeeds, send a map or fails and doesn't send a map, it's up to the Legislature to take action and enact the maps it sees fit," Wice said.

The state is appealing the decision and Wice believes there is a strong chance an appeals judge or panel will overturn it.

"We haven't seen the state Court of Appeals in nearly half a century reject a plan that was enacted by the Legislature and signed by the governor," Wice said.

McAllister's ruling would change the election schedule potentially moving primaries from June to late August. Wice said the appeal should result in an automatic stay of the decision and said candidates should move forward right now as if the normal schedule is still in place.

Petitions to get on the ballot are due next week.

The judge also ruled there was evidence congressional lines were drawn with partisan bias, known as gerrymandering, which is against the state constitution.

That will also be part of the appeals process.