Filename customization: Stack overflow error when returning a UUID from slugify function #4521
Open
3 tasks done
Labels
bug
Something isn't working
Describe the issue that you're seeing. Any Loom videos or screenshots usually help a lot!
I'm using this in a collection definition to generate a random (but unique) ID for new items:
When an editor opens the form to create a new item, I would expect this to populate the filename with a generated UUID.
What actually happens is a Maximum call stack size exceeded exception.
Reproduction
https://github.com/cleishm/tina-app-with-uuid-filename
Steps to reproduce
Run
yarn dev
, then visit http://localhost:3000/admin/index.html#/collections/new/post/~/System Info
Validations
The text was updated successfully, but these errors were encountered: