At this moment, each card and whiteboard has its own separate undo-redo system, and they’re not connected yet.
So, if you drag content from Card A to the whiteboard and undo it on the whiteboard, the newly created card will be deleted. Then, you have to undo it again on Card A to make it appear again.
This means that if you move contents from one card to the whiteboard or another card, you will have to perform the undo actions on both sides to return to the previous state.