The “law” that you are referring to, explicitly stated within it that it did not overturn the older law. That’s why the AZ Supreme Court re-constituted the older law. Read this, from back when the law you are referring to first passed:
https://www.npr.org/2022/03/24/1088623491/arizona-abortion-ban-15-weeks
QUOTE:
The bill explicitly says it does not overrule a state law in place for more than 100 years that would ban abortion outright if the Supreme Court overrules Roe v. Wade, the 1973 case that enshrined the right to abortion in law.
That seems like a political blunder by Arizona Republicans.