diff --git a/package.json b/package.json index f27a732d..5928ace2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.38.2", + "version": "0.38.3", "private": true, "scripts": { "dev": "GENERATE_SOURCEMAP=false react-scripts start", diff --git a/src/components/SidebarLists/SidebarListItem.tsx b/src/components/SidebarLists/SidebarListItem.tsx index 89cd0d3d..423144eb 100644 --- a/src/components/SidebarLists/SidebarListItem.tsx +++ b/src/components/SidebarLists/SidebarListItem.tsx @@ -118,6 +118,16 @@ export default function SidebarListItem({ } break; case "robot": + if ( + deploy && + data?.step1?.launchContainers?.find((cont: any) => { + return cont.container.status === "Creating"; + }) + ) { + return toast.error( + "Deploy is not ready now. Please wait until the deploy is ready.", + ); + } setSidebarState({ ...sidebarState, isOpen: false }); if (deploy) {