From 72bf0da6c518d25913d7568d17fd36809f565d5b Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Fri, 29 Apr 2022 10:30:55 +0300 Subject: [PATCH] disable edit compute settings for algorithms --- src/components/Asset/Edit/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Asset/Edit/index.tsx b/src/components/Asset/Edit/index.tsx index b796e3aa7..b56f4f317 100644 --- a/src/components/Asset/Edit/index.tsx +++ b/src/components/Asset/Edit/index.tsx @@ -33,7 +33,7 @@ export default function Edit({ uri }: { uri: string }): ReactElement { { title: 'Edit Compute Settings', content: , - disabled: !isCompute + disabled: !isCompute || asset?.metadata?.type === 'algorithm' } ].filter((tab) => tab !== undefined)