fixing the url for the api call

This commit is contained in:
csawatzky 2025-11-04 12:28:21 -06:00
parent 10308942ac
commit 8dcc040558

View file

@ -990,9 +990,9 @@ export default function DeviceProvider(props: PropsWithChildren<Props>) {
}
const removeFoundComponents = (id: number, key: string, type: pond.ObjectType, otherTeam?: string) => {
let url = "/devices/" + id + "/removeFoundComponents/" + key;
let url = "/devices/" + id + "/removeFoundComponents/" + key + "?type=" + type;
const view = otherTeam ? otherTeam : as
if(view) url = url + "?as=" + view
if(view) url = url + "&as=" + view
return new Promise<AxiosResponse<pond.RemoveFoundComponentsResponse>>((resolve, reject) => {
del<pond.RemoveFoundComponentsResponse>(pondURL(url)).then(resp => {
return resolve(resp)