use scanType instead of type

This commit is contained in:
csawatzky 2025-11-04 12:29:08 -06:00
parent 8dcc040558
commit efb3c9eb59

View file

@ -990,7 +990,7 @@ export default function DeviceProvider(props: PropsWithChildren<Props>) {
} }
const removeFoundComponents = (id: number, key: string, type: pond.ObjectType, otherTeam?: string) => { const removeFoundComponents = (id: number, key: string, type: pond.ObjectType, otherTeam?: string) => {
let url = "/devices/" + id + "/removeFoundComponents/" + key + "?type=" + type; let url = "/devices/" + id + "/removeFoundComponents/" + key + "?scanType=" + type;
const view = otherTeam ? otherTeam : as 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) => { return new Promise<AxiosResponse<pond.RemoveFoundComponentsResponse>>((resolve, reject) => {