From 687c259c513b487f4ac45bccfd8a677811dd3f8d Mon Sep 17 00:00:00 2001 From: telamonian Date: Mon, 3 Feb 2020 19:08:24 -0500 Subject: [PATCH] followup #7767: small bugfix to lookup in UNSTABLE_getReact --- packages/ui-components/src/icon/labicon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-components/src/icon/labicon.tsx b/packages/ui-components/src/icon/labicon.tsx index 29b7f801b4cf..5bf27584e2eb 100644 --- a/packages/ui-components/src/icon/labicon.tsx +++ b/packages/ui-components/src/icon/labicon.tsx @@ -216,7 +216,7 @@ export class LabIcon implements LabIcon.ILabIcon, VirtualElement.IRenderer { }: { name: string; fallback?: LabIcon } & LabIcon.IReactProps) { for (let className of name.split(/\s+/)) { if (LabIcon._instancesByNameAndClassName.has(className)) { - const icon = LabIcon._instances.get(className)!; + const icon = LabIcon._instancesByNameAndClassName.get(className)!; return ; } }