Skip to content

Commit

Permalink
[mainui] Fix addons details serviceId
Browse files Browse the repository at this point in the history
The serviceId for  details page in the addon store was not properly determined if the addonId did not start with marketplace:.
  • Loading branch information
J-N-K committed Nov 8, 2021
1 parent 9aeb301 commit 364e011
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ export default {
this.stopEventSource()
let addonId = this.addonId
let serviceId = null
if (addonId.indexOf('marketplace:') === 0) {
serviceId = 'marketplace'
if (addonId.indexOf(':') > 0) {
serviceId = addonId.substring(0, addonId.indexOf(":"))
addonId = addonId.substring(addonId.indexOf(':') + 1)
}
this.bindingInfo = null
Expand Down

0 comments on commit 364e011

Please sign in to comment.