diff --git a/src/Pages/DistributedUptime/Create/index.jsx b/src/Pages/DistributedUptime/Create/index.jsx index 7f18123cd..57160d2ab 100644 --- a/src/Pages/DistributedUptime/Create/index.jsx +++ b/src/Pages/DistributedUptime/Create/index.jsx @@ -42,8 +42,9 @@ const CreateDistributedUptime = () => { const { monitorId } = useParams(); const isCreate = typeof monitorId === "undefined"; - const BREADCRUMBS = [ + let BREADCRUMBS = [ { name: `distributed uptime`, path: "/distributed-uptime" }, + ...(isCreate ? [] : [{ name: "details", path: `/distributed-uptime/${monitorId}` }]), { name: isCreate ? "create" : "configure", path: `` }, ]; @@ -182,7 +183,7 @@ const CreateDistributedUptime = () => { component="span" fontSize="inherit" > - Create your{" "} + {isCreate ? "Create your" : "Edit your"}{" "} { const BREADCRUMBS = [ { name: "distributed uptime", path: "/distributed-uptime" }, - { name: "details", path: `/distributed-uptime/${monitorId}` }, + { + name: "details", + path: `/distributed-uptime/${isCreate ? monitorId : statusPage?.monitors[0]}`, + }, { name: isCreate ? "create status page" : "edit status page", path: `` }, ]; // Local state @@ -173,7 +176,7 @@ const CreateStatus = () => { component="span" fontSize="inherit" > - Create your{" "} + {isCreate ? "Create your" : "Edit your"}{" "}