diff --git a/apps/remix-ide/src/app/components/vertical-icons.tsx b/apps/remix-ide/src/app/components/vertical-icons.tsx index c46df20fda..c7b071b614 100644 --- a/apps/remix-ide/src/app/components/vertical-icons.tsx +++ b/apps/remix-ide/src/app/components/vertical-icons.tsx @@ -81,7 +81,13 @@ export class VerticalIcons extends Plugin { }) 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() })