Welcome to Solidworks. Undo has never been well executed.
Actually, see Unable to change dimensions or add new relations in a Solidworks Drawing for more complete details. I am locking this thread. In the future, please submit only one thread on a single topic, otherwise, it becomes impossible to track answers across multiple threads.