diff --git a/frontend/src/pages/connectionTypes/ConnectionTypesTableRow.tsx b/frontend/src/pages/connectionTypes/ConnectionTypesTableRow.tsx index d7d53e7741..f027ba85c3 100644 --- a/frontend/src/pages/connectionTypes/ConnectionTypesTableRow.tsx +++ b/frontend/src/pages/connectionTypes/ConnectionTypesTableRow.tsx @@ -146,21 +146,27 @@ const ConnectionTypesTableRow: React.FC = ({ title: 'Preview', onClick: () => setShowPreview(true), }, - { - title: 'Edit', - onClick: () => navigate(`/connectionTypes/edit/${obj.metadata.name}`), - isDisabled: ownedByDSC(obj), - }, + ...(!ownedByDSC(obj) + ? [ + { + title: 'Edit', + onClick: () => navigate(`/connectionTypes/edit/${obj.metadata.name}`), + }, + ] + : []), { title: 'Duplicate', onClick: () => navigate(`/connectionTypes/duplicate/${obj.metadata.name}`), }, - { isSeparator: true }, - { - title: 'Delete', - onClick: () => handleDelete(obj), - isDisabled: ownedByDSC(obj), - }, + ...(!ownedByDSC(obj) + ? [ + { isSeparator: true }, + { + title: 'Delete', + onClick: () => handleDelete(obj), + }, + ] + : []), ]} />