fix unsubscribe from "All Channels" profile (#2451)
This commit is contained in:
parent
33cf88ce31
commit
84b4d230ab
|
@ -613,7 +613,7 @@ export default Vue.extend({
|
||||||
message: this.$t('Channel.Channel has been removed from your subscriptions')
|
message: this.$t('Channel.Channel has been removed from your subscriptions')
|
||||||
})
|
})
|
||||||
|
|
||||||
if (this.activeProfile === MAIN_PROFILE_ID) {
|
if (this.activeProfile._id === MAIN_PROFILE_ID) {
|
||||||
// Check if a subscription exists in a different profile.
|
// Check if a subscription exists in a different profile.
|
||||||
// Remove from there as well.
|
// Remove from there as well.
|
||||||
let duplicateSubscriptions = 0
|
let duplicateSubscriptions = 0
|
||||||
|
@ -658,7 +658,7 @@ export default Vue.extend({
|
||||||
message: this.$t('Channel.Added channel to your subscriptions')
|
message: this.$t('Channel.Added channel to your subscriptions')
|
||||||
})
|
})
|
||||||
|
|
||||||
if (this.activeProfile !== MAIN_PROFILE_ID) {
|
if (this.activeProfile._id !== MAIN_PROFILE_ID) {
|
||||||
const index = primaryProfile.subscriptions.findIndex((channel) => {
|
const index = primaryProfile.subscriptions.findIndex((channel) => {
|
||||||
return channel.id === this.id
|
return channel.id === this.id
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue