Fixed undo not working when grouping components

This commit is contained in:
Lucas Oliveira 2023-10-20 19:45:28 -03:00
commit 8c1454cb13

View file

@ -499,6 +499,7 @@ export default function Page({
isVisible={selectionMenuVisible} isVisible={selectionMenuVisible}
nodes={lastSelection?.nodes} nodes={lastSelection?.nodes}
onClick={() => { onClick={() => {
takeSnapshot();
if ( if (
validateSelection(lastSelection!, edges).length === 0 validateSelection(lastSelection!, edges).length === 0
) { ) {