hark: check for hidden group, not !hidden group

This commit is contained in:
Matilde Park 2021-02-04 19:49:03 -05:00
parent 45cadff09f
commit 105916d93e

View File

@ -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}`;