Skip to content

Commit f9640e7

Browse files
committed
improvement(undo-redo): expand undo-redo store to store 100 ops instead of 15 (#2036)
* improvement(undo-redo): expand undo-redo store to store 100 ops instead of 15 * prevent undo-redo from interfering with subblock browser text undo
1 parent 1d6877b commit f9640e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ const WorkflowContent = React.memo(() => {
434434
activeElement?.hasAttribute('contenteditable')
435435

436436
if (isEditableElement) {
437+
event.stopPropagation()
437438
return
438439
}
439440

apps/sim/stores/undo-redo/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {
1313
} from './types'
1414

1515
const logger = createLogger('UndoRedoStore')
16-
const DEFAULT_CAPACITY = 15
16+
const DEFAULT_CAPACITY = 100
1717

1818
function getStackKey(workflowId: string, userId: string): string {
1919
return `${workflowId}:${userId}`

0 commit comments

Comments
 (0)