BUG: 'Undo' didn't work after dragging multi sample pad into another pad as addition

I accidentally dragged a pad containing around 10 layers into another pad (adding it to the pad) and it wouldn’t let me undo the action.