Section 126(2)(g) in The Mental Healthcare Act, 2017
(g)any appeal preferred from the order of a Magistrate under the repealed Act but not disposed of before the commencement of this Act may be disposed of by the court as if this Act had not been enacted.