mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Fix delete map from label
This commit is contained in:
parent
0ff82735ba
commit
0e54c6bc78
@ -559,13 +559,10 @@ export default class RestClient implements Client {
|
|||||||
return new Promise(handler);
|
return new Promise(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: not working (error 500: missing lid param)
|
|
||||||
deleteLabelFromMap(labelId: number, mapId: number): Promise<void> {
|
deleteLabelFromMap(labelId: number, mapId: number): Promise<void> {
|
||||||
const handler = (success: () => void, reject: (error: ErrorInfo) => void) => {
|
const handler = (success: () => void, reject: (error: ErrorInfo) => void) => {
|
||||||
axios
|
axios
|
||||||
.delete(`${this.baseUrl}/c/restful/maps/${mapId}/labels/${labelId}`, {
|
.delete(`${this.baseUrl}/c/restful/maps/${mapId}/labels/${labelId}`)
|
||||||
data: JSON.stringify(labelId)
|
|
||||||
})
|
|
||||||
.then(() => {
|
.then(() => {
|
||||||
success();
|
success();
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user