Easy! In the top-left corner, you’ll see two arrows: forward and backward. The right one undoes an action, while the left one brings it back if you change your mind.
👉 If a tool panel is open, the Undo and Redo arrows are hidden. Close the panel first: tap the checkmark or swipe the panel down.