Explorar el Código

fix: resolved the issue of undo/redo not working

Siykt hace 1 año
padre
commit
62fe84bc35
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/newtab/pages/workflows/[id].vue

+ 1 - 1
src/newtab/pages/workflows/[id].vue

@@ -1483,7 +1483,7 @@ function onKeydown({ ctrlKey, metaKey, shiftKey, key, target, repeat }) {
   } else if (command('v')) {
     pasteCopiedElements();
   } else if (command('z')) {
-    undoRedoCommand(shiftKey ? 'redo' : 'undo');
+    undoRedoCommand(shiftKey ? 'redo' : 'undo', { target });
   }
 }
 async function fetchConnectedTable() {