-
-
Notifications
You must be signed in to change notification settings - Fork 203
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
In internal/graphql/email_templates.go:32-35, make([]*model.EmailTemplate, len(emailTemplates)) creates a slice with len nil elements, then append adds the actual data after those nil entries. The result has len nil entries followed by actual data.
Impact
LOW — API response contains nil entries before actual email template data.
Fix
Change to make([]*model.EmailTemplate, 0, len(emailTemplates)) to create a slice with 0 length but pre-allocated capacity.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working