interface: deleted group feed posts that get linked to work properly
-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';
@@ -40,10 +40,10 @@ export class PostFeed extends React.Component {
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);
}) : [];
