Conversation
When a link is duplicated, the custom form fields and visitor group associations were not being copied to the new link. This adds: - Include customFields and visitorGroups in the Prisma query for the source link - Create new CustomField records for the duplicated link via createMany - Create new LinkVisitorGroup junction records for the duplicated link - Return customFields and visitorGroups in the created link response Co-authored-by: Marc Seitz <mfts@users.noreply.github.com>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe change extends link duplication functionality to also clone customFields and visitorGroups. The query now retrieves these fields, and during link creation, conditional logic creates related customFields and visitorGroups records as needed. Changes
Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Duplicate custom form fields and visitor groups when duplicating a link to ensure all link properties are copied.
Summary by CodeRabbit