Draft.find deletes current draft

update
#1

I’m troubleshooting problems with an action for appending to a draft. In doing so, I created a test action containing only the following script:

let d = Draft.find('foo');

If I have a draft open, and I run this action, the draft is immediately moved to the trash. It doesn’t matter what string Draft.find searches for.

Is this a bug?

#2

What is your After success setting in this Action (or the default on this actiongroup)?

1 Like
#3

I feel silly. It was set to “Trash”. Thank you!

1 Like