From 441e20671fc71410790c9ecd98610dc9b7e20cd6 Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Thu, 6 May 2021 13:19:04 -0500 Subject: [PATCH] interface: deleted group feed posts that get linked to work properly --- .../landscape/components/Home/Post/PostFeed.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/Home/Post/PostFeed.tsx b/pkg/interface/src/views/landscape/components/Home/Post/PostFeed.tsx index 8a3c9d946..861157835 100644 --- a/pkg/interface/src/views/landscape/components/Home/Post/PostFeed.tsx +++ b/pkg/interface/src/views/landscape/components/Home/Post/PostFeed.tsx @@ -1,4 +1,4 @@ -import { Box, Col } from '@tlon/indigo-react'; +import { Box, Col, Text } from '@tlon/indigo-react'; import bigInt from 'big-integer'; import React from 'react'; import { resourceFromPath } from '~/logic/lib/group'; @@ -35,15 +35,15 @@ export class PostFeed extends React.Component { const graphResource = resourceFromPath(graphPath); const node = graph.get(index); if (!node) { - return null; -} + return null; + } const first = graph.peekLargest()?.[0]; const post = node?.post; - if (!node || !post) { - return null; - } - const nodeIndex = parentNode ? parentNode.post.index.split('/').slice(1).map((ind) => { + const nodeIndex = + ( parentNode && + typeof parentNode.post !== 'string' + ) ? parentNode.post.index.split('/').slice(1).map((ind) => { return bigInt(ind); }) : [];