bug: serialize to boolean

This commit is contained in:
Paulo Gustavo Veiga 2021-03-01 19:08:27 -08:00
parent 6f6cceda06
commit b4fd0fb40e

View File

@ -431,7 +431,7 @@ export default class RestClient implements Client {
console.debug(`Starred => ${starred}`)
const handler = (success: () => void, reject: (error: ErrorInfo) => void) => {
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' },
})
.then(() => {