In the playbook I have created, I want to reference the output of a javascript snippet when adding a comment to an incident, though when I do this the 'output' is switched seemingly at random to 'body' without my doing, consequently failing the playbook run with this message:

In the logic app designer it shows 'body' though in the code view it remains 'outputs'. Screenshots are attached.
What I don't want but is happening:

What I do want:

Even when the dynamic content reference references body('is_low_risk')?['body'] (what I dont want),
in the code view it shows what I originally had (what I do want):

Any ideas why this is happening?