From 71b5db2625709b2168f700f66de46dd9591e3258 Mon Sep 17 00:00:00 2001 From: Prateek Keerthi Date: Tue, 12 Mar 2024 09:02:48 -0500 Subject: [PATCH] MAT-6744 changed the function name --- src/components/cqlLibraryList/CqlLibraryList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/cqlLibraryList/CqlLibraryList.tsx b/src/components/cqlLibraryList/CqlLibraryList.tsx index 306600e..c34bc5a 100644 --- a/src/components/cqlLibraryList/CqlLibraryList.tsx +++ b/src/components/cqlLibraryList/CqlLibraryList.tsx @@ -196,7 +196,7 @@ export default function CqlLibraryList({ cqlLibraryList, onListUpdate }) { selectedCQLLibrary?.librarySet?.owner, selectedCQLLibrary?.librarySet?.acls ); - const isOwner = checkUserCanDelete( + const canDelete = checkUserCanDelete( selectedCQLLibrary?.librarySet?.owner, selectedCQLLibrary?.draft ); @@ -354,7 +354,7 @@ export default function CqlLibraryList({ cqlLibraryList, onListUpdate }) { )} - {isOwner && ( + {canDelete && (