System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12
Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-04 20:40, hash: rB18959c502d62
Worked: (newest version of Blender that worked as expected)
Short description of error
If you delete a vertex group in edit mode, you won't be able to undo it until you switch to object mode.
Exact steps for others to reproduce the error
Create a cube
Switch to Edit Mode
Create new Vertex Group
Delete Vertex Group
Try to undo. It won't work
Switch to Object mode. Now undo works.