Skip to content

Commit

Permalink
FIX: The list of gloses should be updated after deleting one of them.
Browse files Browse the repository at this point in the history
  • Loading branch information
benel committed Oct 23, 2024
1 parent afe92d1 commit 092ff8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/DeleteDocumentAction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function DeleteDocumentAction({metadata, isFromScratch, backend, setLastUpdate})

const handleClick = () => {
backend.deleteDocument(metadata)
.then(x => setLastUpdate(x._rev))
.then(x => setLastUpdate(x.rev))
.then(() => navigate(isFromScratch ? '/' : '#'));
};

Expand Down

0 comments on commit 092ff8d

Please sign in to comment.