Przeglądaj źródła

Added conditional chaining to check if the url has a tag

jnfrati 4 lat temu
rodzic
commit
bbbedd153a

+ 1 - 1
dashboard/src/main/home/launch/launch-flow/LaunchFlow.tsx

@@ -170,7 +170,7 @@ const LaunchFlow: React.FC<PropsType> = (props) => {
       tag = props.clonedChart.config.image.tag;
       tag = props.clonedChart.config.image.tag;
     }
     }
 
 
-    if (url.includes(":")) {
+    if (url?.includes(":")) {
       let splits = url.split(":");
       let splits = url.split(":");
       url = splits[0];
       url = splits[0];
       tag = splits[1];
       tag = splits[1];