fix: templates incorrectly linking when in a team

This commit is contained in:
Lucas Smith
2024-03-11 01:46:19 +00:00
parent 1a23744d2a
commit c2cf25b138
3 changed files with 26 additions and 4 deletions

View File

@ -25,7 +25,11 @@ type TemplateWithRecipient = Template & {
};
type TemplatesDataTableProps = {
templates: TemplateWithRecipient[];
templates: Array<
TemplateWithRecipient & {
team: { id: number; url: string } | null;
}
>;
perPage: number;
page: number;
totalPages: number;