From 5599ee3f7be686a45e1991d6df2e16b6e0531e35 Mon Sep 17 00:00:00 2001 From: Nikolay Bonev Date: Thu, 19 Sep 2024 11:55:05 +0300 Subject: [PATCH] fix: error with selecting all NRM --- app/components/nrm/bulk-actions-dropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/nrm/bulk-actions-dropdown.tsx b/app/components/nrm/bulk-actions-dropdown.tsx index c7f885568..03e00d457 100644 --- a/app/components/nrm/bulk-actions-dropdown.tsx +++ b/app/components/nrm/bulk-actions-dropdown.tsx @@ -40,7 +40,7 @@ function ConditionalDropdown() { const actionsButtonDisabled = selectedNRMs.length === 0; const someNRMHasCustody = selectedNRMs.some( - (nrm) => nrm._count.custodies > 0 + (nrm) => nrm?._count?.custodies > 0 ); const {