Преглед изворни кода

add check for operation existing in operation details

Alexander Belanger пре 4 година
родитељ
комит
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]);
   }, [infraState]);
 
 
-  if (isLoading || !infraState) {
+  if (isLoading || !infraState || !operation) {
     return (
     return (
       <Placeholder>
       <Placeholder>
         <Loading />
         <Loading />