Using this action as an example:
const d = Draft.find("B3DD477E-AEB2-4941-82C5-8FCDCFFC9CDA") let newtext = d.content; d.content = newtext.toUpperCase(); d.update();
If I have the Draft with that uuid open in the editor and then run the action, the editor doesn’t reflect the changes to the draft. If I switch to another draft and then back to the edited one, I then see the changes.
The same action, using the global draft variable, works as expected:
let newtext = draft.content; draft.content = newtext.toUpperCase(); draft.update();