فهرست منبع

Added conditional chaining to check if the url has a tag

jnfrati 4 سال پیش
والد
کامیت
bbbedd153a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      dashboard/src/main/home/launch/launch-flow/LaunchFlow.tsx

+ 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];