If you accidentally make a Swap, it is unfortunately not possible to reverse the action. You can, however, spend gems to earn extra swaps as much as you like.