got rid of unnessarry logs

This commit is contained in:
Carter 2025-01-07 15:17:27 -06:00
parent 8fc8745862
commit 67ea4cbfdc
3 changed files with 8 additions and 20 deletions

View file

@ -10,7 +10,6 @@ import { useEffect, useState } from "react";
import PageContainer from "./PageContainer";
import { useMobile } from "hooks";
import { useLocation, useNavigate, useParams } from "react-router-dom";
import { or } from "utils/types";
import { getContextKeys, getContextTypes } from "pbHelpers/Context";
import { getDeviceStateHelper } from "pbHelpers/DeviceState";
import { Device, Group } from "models";
@ -206,7 +205,6 @@ export default function Devices() {
// };
const prependToUrl = (prependage: number | string) => {
console.log(location.pathname)
const basePath = location.pathname.replace(/\/$/, "");
return(`/${prependage}/${basePath}`.replace(/\/{2,}/g, "/").replace(/(\/[^/]+)\/\1+/g, "$1"));
};