mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 22:03:50 +03:00
hark: check for hidden group, not !hidden group
This commit is contained in:
parent
45cadff09f
commit
105916d93e
@ -139,10 +139,10 @@ const GraphNodeContent = ({ group, post, contacts, mod, description, index, remo
|
||||
return null;
|
||||
};
|
||||
|
||||
function getNodeUrl(mod: string, group: boolean, groupPath: string, graph: string, index: string) {
|
||||
if (!group && mod === 'chat') {
|
||||
function getNodeUrl(mod: string, hidden: boolean, groupPath: string, graph: string, index: string) {
|
||||
if (hidden && mod === 'chat') {
|
||||
groupPath = '/messages';
|
||||
} else if (!group) {
|
||||
} else if (hidden) {
|
||||
groupPath = '/home';
|
||||
}
|
||||
const graphUrl = `/~landscape${groupPath}/resource/${mod}${graph}`;
|
||||
|
Loading…
Reference in New Issue
Block a user