simpler differentiation between creating and updating

This commit is contained in:
Alex Holliday committed 2025-02-12 13:46:09 -08:00
1 parent 89a542e804
commit 2db41d331e
1 file changed
+1 -3
+1 -3
View File
@@ -12,7 +12,6 @@ import { useMonitorsFetch } from "./Hooks/useMonitorsFetch";
import { useCreateStatusPage } from "./Hooks/useCreateStatusPage";
import { createToast } from "../../../Utils/toastUtils";
import { useNavigate } from "react-router-dom";
import { useLocation } from "react-router-dom";
import { useStatusPageFetch } from "../Status/Hooks/useStatusPageFetch";
import { useParams } from "react-router-dom";
@@ -47,8 +46,7 @@ const CreateStatusPage = () => {
const intervalRef = useRef(null);
// Setup
const location = useLocation();
const isCreate = location.pathname === "/status/uptime/create";
const isCreate = typeof url === "undefined";
//Utils
const theme = useTheme();