From b4fd0fb40e67478fd3dc3a77ff6d7c8ccaeef353 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 1 Mar 2021 19:08:27 -0800 Subject: [PATCH] bug: serialize to boolean --- packages/webapp/src/classes/client/rest-client/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/src/classes/client/rest-client/index.ts b/packages/webapp/src/classes/client/rest-client/index.ts index 374fb622..0127e4d1 100644 --- a/packages/webapp/src/classes/client/rest-client/index.ts +++ b/packages/webapp/src/classes/client/rest-client/index.ts @@ -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(() => {