check to make sure icon isn't undefined

pull/4792/head^2
Joseph Izang 6 months ago committed by Aniket
parent 5f9d787126
commit 0411fe4036
  1. 2
      apps/remix-ide/src/app/components/vertical-icons.tsx

@ -73,7 +73,7 @@ export class VerticalIcons extends Plugin {
Object.keys(this.icons).map((o) => { Object.keys(this.icons).map((o) => {
this.icons[o].active = false this.icons[o].active = false
}) })
this.icons[name].active = true this.icons[name] ? this.icons[name].active = true : null
this.renderComponent() this.renderComponent()
}) })
} }

Loading…
Cancel
Save