Fix double pinned icon

pull/4831/head
ioedeveloper 6 months ago committed by Aniket
parent 416441b8f0
commit 33d0715f86
  1. 8
      apps/remix-ide/src/app/components/vertical-icons.tsx

@ -81,7 +81,13 @@ export class VerticalIcons extends Plugin {
}) })
this.on('pinnedPanel', 'pinnedPlugin', (profile) => { this.on('pinnedPanel', 'pinnedPlugin', (profile) => {
this.icons[profile.name].pinned = true Object.keys(this.icons).map((icon) => {
if (this.icons[icon].profile.name === profile.name) {
this.icons[icon].pinned = true
} else {
this.icons[icon].pinned = false
}
})
this.renderComponent() this.renderComponent()
}) })

Loading…
Cancel
Save