Disabling component types in menus where there are zero components for that type