From 63b553ff114a226ea2a055df3730ddb7123ec16f Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 31 May 2024 18:27:00 +0100 Subject: [PATCH] Unpin existing icon --- apps/remix-ide/src/app/components/vertical-icons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/components/vertical-icons.tsx b/apps/remix-ide/src/app/components/vertical-icons.tsx index c7b071b614..eb5ea60863 100644 --- a/apps/remix-ide/src/app/components/vertical-icons.tsx +++ b/apps/remix-ide/src/app/components/vertical-icons.tsx @@ -92,7 +92,7 @@ export class VerticalIcons extends Plugin { }) this.on('pinnedPanel', 'unPinnedPlugin', (profile) => { - this.icons[profile.name].pinned = false + if (this.icons[profile.name]) this.icons[profile.name].pinned = false this.renderComponent() }) }