Explorar o código

Merge pull request #1362 from Siykt/fix/undo-redo-not-working

[Fix] resolved the issue of undo/redo not working
Ahmad Kholid %!s(int64=2) %!d(string=hai) anos
pai
achega
f55be7a22a
Modificáronse 1 ficheiros con 1 adicións e 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() {