Fix issue where the context menu - component type icons was not rendered as expected