fixing the url for the api call
This commit is contained in:
parent
10308942ac
commit
8dcc040558
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue