Skip to content

Commit

Permalink
MAT-6744 changed the function name
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-prateekkeerthi committed Mar 12, 2024
1 parent 74c1e4a commit 71b5db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/cqlLibraryList/CqlLibraryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down Expand Up @@ -354,7 +354,7 @@ export default function CqlLibraryList({ cqlLibraryList, onListUpdate }) {
</button>
)}

{isOwner && (
{canDelete && (
<button
data-testid={`delete-existing-draft-${selectedCQLLibrary.id}-button`}
onClick={() => {
Expand Down

0 comments on commit 71b5db2

Please sign in to comment.