Draft.find deletes current draft

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?

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

1 Like

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

1 Like