Skip to content

Commit

Permalink
FIX: "Use an existing document" should display linkable documents (fixes
Browse files Browse the repository at this point in the history
 #242).

Regression caused by 0169054.
  • Loading branch information
benel committed Jan 8, 2025
1 parent 49cca26 commit 58538a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/DocumentList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function DocumentList({ relatedTo, verb, setSelectedDocument, setShowDocumentLis
useEffect(() => {
backend.refreshDocuments(
x => setUserDocuments(
x.filter(y => y._id !== relatedTo)
x.filter(y => y && y._id !== relatedTo)
)
);
}, [user, backend, relatedTo]);
Expand Down

0 comments on commit 58538a1

Please sign in to comment.