Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Nest partner group condition under the first metric rule.

Kiran Ke56ef78d15f6
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-move-rules.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-move-rules.tsx
index 4afa61794e..76576da532 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-move-rules.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/settings/group-move-rules.tsx
@@ -130,7 +130,7 @@ export function GroupMoveRules() {
attribute === rule.attribute ||
!usedMetricAttributes.includes(attribute),
);
- const isLastMetric = metricIndex === metricRuleIndexes.length - 1;
+ const isFirstMetric = metricIndex === 0;
return (
<Fragment key={ruleFields[index]?.id ?? index}>
@@ -147,7 +147,7 @@ export function GroupMoveRules() {
}}
onRemove={() => handleRemoveRule(index)}
nestedCondition={
- isLastMetric
+ isFirstMetric
? hasPartnerGroupCondition
? {
rule: moveRules[partnerGroupRuleIndex]!,