display only genres with type = profile in edit profile

This commit is contained in:
Nuwan 2024-10-07 10:48:09 +05:30
parent 91c85d5e59
commit 119a180a82
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}