We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b58c5de commit ab99b72Copy full SHA for ab99b72
1 file changed
src/components/UndoModal/index.tsx
@@ -205,7 +205,7 @@ export const UndoModal: React.FC<UndoModalProps> = ({
205
const previewIndex = future.length - 1 - index
206
setPreview(future[previewIndex])
207
} else {
208
- const previewIndex = past.length - 2 - (index - future.length)
+ const previewIndex = past.length - 1 - (index - future.length)
209
setPreview(past[previewIndex])
210
}
211
setSelectedUndoIndex(index)
0 commit comments