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
if (!artists) {
75
return [];
76
}
77
-
return artists
78
-
.filter((x) => x.tags)
79
-
.map((x) => x.tags)
80
-
.flat()
81
-
.slice(0, 20);
0
0
0
82
}, [artists]);
83
84
const onFollow = () => {
···
74
if (!artists) {
75
return [];
76
}
77
+
return Array.from(
78
+
new Set(
79
+
artists
80
+
.filter((x) => x.tags)
81
+
.map((x) => x.tags)
82
+
.flat(),
83
+
),
84
+
).slice(0, 20);
85
}, [artists]);
86
87
const onFollow = () => {