hotfix to add as to the historyBetween function in the component API so that it works when viewing as a team without direct user permission to it

This commit is contained in:
csawatzky 2026-07-08 11:01:45 -06:00
parent 10f0aa46cc
commit 2c17fb655c

View file

@ -417,7 +417,8 @@ export default function ComponentProvider(props: PropsWithChildren<Props>) {
"&end=" + "&end=" +
end + end +
(keys ? "&keys=" + keys : "&keys=" + [deviceId.toString()]) + (keys ? "&keys=" + keys : "&keys=" + [deviceId.toString()]) +
(types ? "&types=" + types : "&types=" + ["device"]) (types ? "&types=" + types : "&types=" + ["device"]) +
(as ? "&as=" + as : "")
) )
return new Promise<AxiosResponse<pond.ListComponentHistoryBetweenResponse>>((resolve,reject) => { return new Promise<AxiosResponse<pond.ListComponentHistoryBetweenResponse>>((resolve,reject) => {
get<pond.ListComponentHistoryBetweenResponse>(url).then(resp => { get<pond.ListComponentHistoryBetweenResponse>(url).then(resp => {