Skip to content

Commit

Permalink
Update ft-subscribe-button profile dropdown to use profile id as key …
Browse files Browse the repository at this point in the history
…& id, not index
  • Loading branch information
kommunarr committed Oct 28, 2023
1 parent 9f8c95b commit 5b5c773
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default defineComponent({
return this.$store.getters.getProfileList
},

/* sort by 'All Channels' -> active profile -> unsubscribed channels -> unsubscribed channels */
/* sort by 'All Channels' -> active profile -> unsubscribed channels -> subscribed channels */
profileDisplayList: function () {
const mainProfileAndActiveProfile = [this.profileList[0]]
if (this.activeProfile._id !== MAIN_PROFILE_ID) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
>
<li
v-for="(profile, index) in profileDisplayList"
:id="'profile-' + index"
:key="'subscription-profile-' + index"
:id="'subscription-profile-' + profile._id"
:key="profile._id"
class="profile"
:class="{
subscribed: isProfileSubscribed(profile)
}"
:aria-labelledby="'profile-' + index + '-name'"
:aria-labelledby="'subscription-profile-' + profile._id + '-name'"
:aria-selected="isActiveProfile(profile)"
:aria-checked="isProfileSubscribed(profile)"
tabindex="0"
Expand All @@ -67,7 +67,7 @@
</div>
</div>
<p
:id="'profile-' + index + '-name'"
:id="'subscription-profile-' + profile._id + '-name'"
class="profileName"
>
{{ profile.name }}
Expand Down

0 comments on commit 5b5c773

Please sign in to comment.