Browse Source

Fix null text displayed

jnfrati 4 năm trước cách đây
mục cha
commit
a79a8df25a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      dashboard/src/main/home/launch/launch-flow/LaunchFlow.tsx

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

@@ -341,7 +341,7 @@ const LaunchFlow: React.FC<PropsType> = (props) => {
 
     if (!templateName && !props.isCloning) {
       const newTemplateName = generateRandomName();
-      setTemplateName(newTemplateName)
+      setTemplateName(newTemplateName);
     }
 
     if (currentPage === "workflow" && currentTab === "porter") {
@@ -403,7 +403,7 @@ const LaunchFlow: React.FC<PropsType> = (props) => {
         {renderIcon()}
         {!props.isCloning
           ? `New ${currentTemplateName} ${
-              currentTab === "porter" ? null : "Instance"
+              currentTab !== "porter" ? "Instance" : ""
             }`
           : `Cloning ${currentTemplateName} deployment: ${props.clonedChart.name}`}
       </TitleSection>