mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Align undo/redo functionality on new canvas (no-changelog) (#11154)
This commit is contained in:
@@ -652,10 +652,10 @@ export function useNodeHelpers() {
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function disableNodes(nodes: INodeUi[], trackHistory = false) {
|
||||
function disableNodes(nodes: INodeUi[], { trackHistory = false, trackBulk = true } = {}) {
|
||||
const telemetry = useTelemetry();
|
||||
|
||||
if (trackHistory) {
|
||||
if (trackHistory && trackBulk) {
|
||||
historyStore.startRecordingUndo();
|
||||
}
|
||||
|
||||
@@ -690,7 +690,8 @@ export function useNodeHelpers() {
|
||||
);
|
||||
}
|
||||
}
|
||||
if (trackHistory) {
|
||||
|
||||
if (trackHistory && trackBulk) {
|
||||
historyStore.stopRecordingUndo();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user