From 119a180a8255dde414f3569b3d7e95c6a4c08d34 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Mon, 7 Oct 2024 10:48:09 +0530 Subject: [PATCH] display only genres with type = profile in edit profile --- jam-ui/src/components/page/JKEditProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jam-ui/src/components/page/JKEditProfile.js b/jam-ui/src/components/page/JKEditProfile.js index b14eec37a..0dae262ec 100644 --- a/jam-ui/src/components/page/JKEditProfile.js +++ b/jam-ui/src/components/page/JKEditProfile.js @@ -93,7 +93,7 @@ function JKEditProfile() { setValue('traditionalBand', data.traditional_band); setValue('cowriting', data.cowriting); setValue('instruments', data.instruments); - setValue('genres', data.genres); + setValue('genres', data.genres.filter(genre => genre.genre_type && genre.genre_type === 'profile')); if (data.country) { fetchRegions(data.country); }