Skip to content

Commit

Permalink
[MDS-5446] Duplicate document upload bug fix (#2646)
Browse files Browse the repository at this point in the history
* fix re-rendering documents issue.

* add condition.

* revert code.
  • Loading branch information
henryoforeh-dev authored Sep 5, 2023
1 parent d984e39 commit 24164bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/core-web/src/components/common/DocumentTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ export const DocumentTable = ({
setDocumentsCanBulkDropDown(isBulkArchive);
}, []);

useEffect(() => {
setDocuments(parseDocuments(props.documents ?? []));
}, [props.documents]);

const openArchiveModal = (event, docs: MineDocument[]) => {
const mineGuid = docs[0].mine_guid;
event.preventDefault();
Expand Down

0 comments on commit 24164bc

Please sign in to comment.