Skip to content

Creating Email Template Group fails without error if no #524

@adambarito

Description

@adambarito
Image

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:

Image

So, we need to understand and troubleshoot:

  1. why TRPC errors with no email templates included (user should be able to create an empty template group if they want)
  2. Why modal isn't closing
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions