Skip to content

Commit 1cdc626

Browse files
committed
Fix incorrect revert when changing edit without saving #184
1 parent 075612d commit 1cdc626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ValueNodeWrapper.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export const ValueNodeWrapper: React.FC<ValueNodeProps> = (props) => {
362362
startEdit={
363363
canEdit
364364
? () => {
365-
setPreviousValue(value)
365+
setPreviousValue(previousValue)
366366
setCurrentlyEditingElement(path, handleCancel)
367367
}
368368
: undefined

0 commit comments

Comments
 (0)