Saved queries cannot be deleted

Where is the bug?

Issue Description

In Kids First Data Portal, when clicking the trash can of a saved query, an error is popped up saying

An error may have prevented us from deleting your study
Please try again. If your study cannot be deleted, contact us for assistance.

Expected Behavior

The saved query should be deleted.

Actual Behavior

The saved query is still there.

Have You Tried Any Troubleshooting On Your Own?

Your environemnt

  • Operating system: MacOS, Linux, Windows
  • Browser and Browser Version: e.g. Firefox 81.0.1 , Chrome 86.0.4240.75

Other Notes

If there’s anything else you want others to know about this issue, this is a great place for that.