mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
bug: serialize to boolean
This commit is contained in:
parent
06995dc131
commit
d8453bd602
@ -431,7 +431,7 @@ export default class RestClient implements Client {
|
|||||||
console.debug(`Starred => ${starred}`)
|
console.debug(`Starred => ${starred}`)
|
||||||
const handler = (success: () => void, reject: (error: ErrorInfo) => void) => {
|
const handler = (success: () => void, reject: (error: ErrorInfo) => void) => {
|
||||||
axios
|
axios
|
||||||
.put(`${this.baseUrl}/c/restful/maps/${id}/starred`, starred, {
|
.put(`${this.baseUrl}/c/restful/maps/${id}/starred`, starred.toString(), {
|
||||||
headers: { 'Content-Type': 'text/plain' },
|
headers: { 'Content-Type': 'text/plain' },
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user