You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(citations): Competitor Gaps 'By competitor' selector shows the competitor id instead of its name #328
On the Citations page (/dashboard/citations) → Competitor Gaps tab → By competitor view, the competitor selector shows the competitor names in the dropdown options (correct), but once you pick one, the trigger shows the competitor's id (a UUID) instead of its name.
Root cause
The selector's SelectValue has no render function, so Base-UI renders the raw selected value — and the value is the competitor id.
<Selectvalue={competitorId}onValueChange={(v)=>{if(v)onSelect(v);}}><SelectTriggerclassName="h-8 w-56 text-xs"><SelectValueplaceholder="Select competitor"/>{/* ← no label mapping */}</SelectTrigger><SelectContent>{gaps.competitors.map((c)=>(<SelectItemkey={c.id}value={c.id}>{c.name}</SelectItem>))}</SelectContent></Select>
SelectItem value={c.id} sets the value to the id; with this Base-UI Select, the trigger shows the raw value unless SelectValue is given a render function that maps value → label.
The other selects on the same page already do this — see the Platform and Topic selects, e.g.:
Activity