tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
Deduplicate artist tags before slicing
tsiry-sandratraina.com
1 month ago
236ff94c
8325de28
+8
-5
1 changed file
expand all
collapse all
unified
split
apps
web
src
pages
profile
Profile.tsx
+8
-5
apps/web/src/pages/profile/Profile.tsx
···
74
74
if (!artists) {
75
75
return [];
76
76
}
77
77
-
return artists
78
78
-
.filter((x) => x.tags)
79
79
-
.map((x) => x.tags)
80
80
-
.flat()
81
81
-
.slice(0, 20);
77
77
+
return Array.from(
78
78
+
new Set(
79
79
+
artists
80
80
+
.filter((x) => x.tags)
81
81
+
.map((x) => x.tags)
82
82
+
.flat(),
83
83
+
),
84
84
+
).slice(0, 20);
82
85
}, [artists]);
83
86
84
87
const onFollow = () => {