mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-14 05:29:27 +01:00
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')
|
||||
})
|
||||
|
||||
if (this.activeProfile === MAIN_PROFILE_ID) {
|
||||
if (this.activeProfile._id === MAIN_PROFILE_ID) {
|
||||
// Check if a subscription exists in a different profile.
|
||||
// Remove from there as well.
|
||||
let duplicateSubscriptions = 0
|
||||
@ -658,7 +658,7 @@ export default Vue.extend({
|
||||
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) => {
|
||||
return channel.id === this.id
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user