fixed devices summary not loading through context

This commit is contained in:
Carter 2025-03-06 14:34:46 -06:00
parent b0274ad639
commit 9eb9740525
6 changed files with 27 additions and 23 deletions

View file

@ -193,7 +193,7 @@ export default function DeviceProvider(props: PropsWithChildren<Props>) {
types?: string[]
) => {
let url = pondURL("/deviceStatistics");
if (types && types.length > 0 && types[0] === "team")
if (types && types.length > 0)
url = pondURL(
"/deviceStatistics/" +
(keys ? "?keys=" + keys.toString() : "") +