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

Added conditional chaining to check if the url has a tag

jnfrati 4 лет назад
Родитель
Сommit
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;
     }
 
-    if (url.includes(":")) {
+    if (url?.includes(":")) {
       let splits = url.split(":");
       url = splits[0];
       tag = splits[1];