Skip to content

Commit

Permalink
Use package icon as default when no other can be found (#60025)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Schulz authored Mar 12, 2020
1 parent 352e5f6 commit 1ee3c1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const PackageIcon: React.FunctionComponent<{
const svgIcons = icons?.filter(icon => icon.type === 'image/svg+xml');
const localIcon = svgIcons && Array.isArray(svgIcons) && svgIcons[0];
const pathToLocal = localIcon && toImage(localIcon.src);
const euiIconType = pathToLocal || euiLogoIcon || 'savedObjectsApp';
const euiIconType = pathToLocal || euiLogoIcon || 'package';

return <EuiIcon size="s" type={euiIconType} {...euiIconProps} />;
};

0 comments on commit 1ee3c1e

Please sign in to comment.