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:
parent
10f0aa46cc
commit
2c17fb655c
1 changed files with 2 additions and 1 deletions
|
|
@ -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 => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue