From 0901ff71417b51a9c754d8a420ce0c9f769a5787 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Wed, 1 Jun 2022 17:28:39 +0300 Subject: [PATCH] use optional on initialized provider check --- src/components/Asset/AssetActions/Compute/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Asset/AssetActions/Compute/index.tsx b/src/components/Asset/AssetActions/Compute/index.tsx index 357575517..2972c6bd9 100644 --- a/src/components/Asset/AssetActions/Compute/index.tsx +++ b/src/components/Asset/AssetActions/Compute/index.tsx @@ -138,8 +138,8 @@ export default function Compute({ ) if ( !initializedProvider || - !initializedProvider.datasets || - !initializedProvider.algorithm + !initializedProvider?.datasets || + !initializedProvider?.algorithm ) { setError(`Error initializing provider for the compute job!`) return