Skip to content

Commit

Permalink
fix(subscription): fix issue with resubscribing
Browse files Browse the repository at this point in the history
  • Loading branch information
XL-YiBai authored and ysfscream committed Jun 14, 2024
1 parent 6346d57 commit fcfbe89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/SubscriptionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ export default class SubscriptionsList extends Vue {
if (error) {
this.$emit('onSubError', error.toString(), `Topics: ${JSON.stringify(topicsArr)}`)
this.$log.error(`Error subscribing to topic: ${error}`)
isFinished = true
return false
}
const successSubscriptions: string[] = []
Expand All @@ -466,6 +467,7 @@ export default class SubscriptionsList extends Vue {
})
}
if (!successSubscriptions.length) {
isFinished = true
return false
}
if (enable) {
Expand Down
2 changes: 2 additions & 0 deletions web/src/components/SubscriptionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ export default class SubscriptionsList extends Vue {
this.subLoading = false
if (error) {
this.$message.error(error)
isFinished = true
return false
}
const successSubscriptions: string[] = []
Expand All @@ -418,6 +419,7 @@ export default class SubscriptionsList extends Vue {
}
})
if (!successSubscriptions.length) {
isFinished = true
return false
}
if (enable) {
Expand Down

0 comments on commit fcfbe89

Please # to comment.