From c9f0e3a5e61a5a5df2b48dd97992df60fe04f790 Mon Sep 17 00:00:00 2001 From: Saumya Pandey Date: Thu, 26 Aug 2021 22:41:17 +0530 Subject: [PATCH] Update app/components/DocumentListItem.js Co-authored-by: Tom Moor --- app/components/DocumentListItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/DocumentListItem.js b/app/components/DocumentListItem.js index 37b8891a27..0bf3285b21 100644 --- a/app/components/DocumentListItem.js +++ b/app/components/DocumentListItem.js @@ -65,7 +65,7 @@ function DocumentListItem(props: Props, ref) { !!document.title.toLowerCase().includes(highlight.toLowerCase()); const canStar = policies.abilities(document.id).star; const can = policies.abilities(currentTeam.id); - const canCollection = policies.abilities(document.computedCollectionId); + const canCollection = document.collectionId ? policies.abilities(document.collectionId) : {}; return (