Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(subscription): fix issue with resubscribing #1691

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading