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.

v2_ endpoints

Steven Teyd30077645653
diff --git a/apps/web/lib/analytics/get-analytics.ts b/apps/web/lib/analytics/get-analytics.ts
index 96d446bcdb..b1245d1cce 100644
--- a/apps/web/lib/analytics/get-analytics.ts
+++ b/apps/web/lib/analytics/get-analytics.ts
@@ -89,7 +89,7 @@ export const getAnalytics = async (params: AnalyticsFilters) => {
// Create a Tinybird pipe
const pipe = (isDemo ? tbDemo : tb).buildPipe({
- pipe: `${groupBy === "top_links" ? "v2" : "v1"}_${groupBy}`,
+ pipe: `v2_${groupBy}`,
parameters: analyticsFilterTB,
data: groupBy === "top_links" ? z.any() : analyticsResponse[groupBy],
});
diff --git a/packages/ui/src/filter/filter-list.tsx b/packages/ui/src/filter/filter-list.tsx
index d8b8cf79ba..135391bcc2 100644
--- a/packages/ui/src/filter/filter-list.tsx
+++ b/packages/ui/src/filter/filter-list.tsx
@@ -39,7 +39,7 @@ export function FilterList({
>
<div className="flex grow flex-wrap gap-x-4 gap-y-2">
<AnimatePresence>
- {activeFilters?.map(({ key, value: filterValue }, idx) => {
+ {activeFilters?.map(({ key, value: filterValue }) => {
if (key === "loader") {
return (
<motion.div
@@ -85,7 +85,7 @@ export function FilterList({
return (
<motion.div
- key={`${key}-${value}-${idx}`}
+ key={`${key}-${value}`}
initial={{ opacity: 0, y: 4 }}
animate={{ opacity: 1, y: 0 }}
className="flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black"