1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

disable edit compute settings for algorithms

This commit is contained in:
Bogdan Fazakas 2022-04-29 10:30:55 +03:00
parent 759c9332a0
commit 72bf0da6c5

View File

@ -33,7 +33,7 @@ export default function Edit({ uri }: { uri: string }): ReactElement {
{
title: 'Edit Compute Settings',
content: <EditComputeDataset asset={asset} />,
disabled: !isCompute
disabled: !isCompute || asset?.metadata?.type === 'algorithm'
}
].filter((tab) => tab !== undefined)