Meaning of “undoing” - Learner’s Dictionary

undoing

noun uk us /ʌnˈduːɪŋ/
be sb's undoing

to be the thing that makes someone fail:

It was a policy that proved to be the President's undoing.

(Definition of “undoing” from the Cambridge Learner’s Dictionary © Cambridge University Press)