When creating a template group without any email templates, there is a silent TRPC error and the modal doesn't close and the query cache isn't invalidated. Upon refreshing, it does actually look like the template group was created:
So, we need to understand and troubleshoot:
- why TRPC errors with no email templates included (user should be able to create an empty template group if they want)
- Why modal isn't closing
- Even when modal closes, why query cache isn't being invalidated (the cache should really be optimistically updated when the template group is created, then invalidated)