Skip to content

Commit

Permalink
Explorer UI json payload for messages
Browse files Browse the repository at this point in the history
Signed-off-by: thfries <thomas.fries0@gmail.com>
  • Loading branch information
thfries committed Nov 4, 2022
1 parent cd61287 commit 2aa5a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/modules/things/featureMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export async function ready() {
* Calls Ditto to send a message with the parameters of the fields in the UI
*/
function messageFeature() {
const payload = acePayload.getValue();
const payload = JSON.parse(acePayload.getValue());
aceResponse.setValue('');
API.callDittoREST('POST', '/things/' + Things.theThing.thingId +
'/features/' + dom.theFeatureId.value +
Expand Down

0 comments on commit 2aa5a39

Please sign in to comment.