mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
parent
57d0a7def4
commit
802a0f91c2
@ -1,6 +1,7 @@
|
||||
import React, { ReactElement, useCallback } from 'react';
|
||||
import { Associations, Graph } from '@urbit/api';
|
||||
import { patp, patp2dec } from 'urbit-ob';
|
||||
import _ from 'lodash';
|
||||
|
||||
import { SidebarAssociationItem, SidebarDmItem } from './SidebarItem';
|
||||
import useGraphState, { useInbox } from '~/logic/state/graph';
|
||||
@ -86,7 +87,7 @@ function getItems(associations: Associations, workspace: Workspace, inbox: Graph
|
||||
? []
|
||||
: Array.from(pending).map(s => `~${s}`);
|
||||
|
||||
return [...filtered, ...direct, ...pend];
|
||||
return [...filtered, ..._.union(direct, pend)];
|
||||
}
|
||||
|
||||
export function SidebarList(props: {
|
||||
|
Loading…
Reference in New Issue
Block a user