Просмотр исходного кода

add check for operation existing in operation details

Alexander Belanger 4 лет назад
Родитель
Сommit
7d4cf5ed7e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      dashboard/src/components/ProvisionerStatus.tsx

+ 1 - 1
dashboard/src/components/ProvisionerStatus.tsx

@@ -599,7 +599,7 @@ const OperationDetails: React.FunctionComponent<OperationDetailsProps> = ({
     }
   }, [infraState]);
 
-  if (isLoading || !infraState) {
+  if (isLoading || !infraState || !operation) {
     return (
       <Placeholder>
         <Loading />