fix missing icon

Signed-off-by: Joe Patterson <jrwpatterson@gmail.com>
This commit is contained in:
Joe Patterson
2022-11-02 09:59:03 +10:00
parent 0b11500151
commit e63b1d973e
@@ -41,11 +41,8 @@ const WebLink = ({
export const LinksGroup = ({ links }: { links?: EntityLink[] }) => {
const app = useApp();
const iconResolver = useCallback(
(key?: string): IconComponent =>
key ? app.getSystemIcon(key) ?? LanguageIcon : LanguageIcon,
[app],
);
const iconResolver = (key?: string): IconComponent =>
key ? app.getSystemIcon(key) ?? LanguageIcon : LanguageIcon;
if (links === undefined) {
return null;