mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
links, publish: do not visualize deleted nodes
Fixes urbit/landscape#979
This commit is contained in:
parent
1704fe5039
commit
d9c73fa457
@ -55,8 +55,10 @@ export function LinkBlocks(props: LinkBlocksProps) {
|
||||
}, [association.resource]);
|
||||
|
||||
const orm = useMemo(() => {
|
||||
const nodes = [null, ...Array.from(props.graph)];
|
||||
|
||||
const graph = Array.from(props.graph).filter(
|
||||
([idx, node]) => typeof node?.post !== 'string'
|
||||
);
|
||||
const nodes = [null, ...graph];
|
||||
const chunks = _.chunk(nodes, colCount);
|
||||
return new BigIntOrderedMap<[bigInt.BigInteger, GraphNode][]>().gas(
|
||||
chunks.reverse().map((chunk, i) => {
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { Col } from '@tlon/indigo-react';
|
||||
import { Graph, Group } from '@urbit/api';
|
||||
import React from 'react';
|
||||
import useContactState from '~/logic/state/contact';
|
||||
import { NotePreview } from './NotePreview';
|
||||
|
||||
interface NotebookPostsProps {
|
||||
@ -19,7 +18,7 @@ export function NotebookPosts(props: NotebookPostsProps) {
|
||||
<Col>
|
||||
{Array.from(props.graph || []).map(
|
||||
([date, node]) =>
|
||||
node && (
|
||||
node && typeof node?.post !== 'string' && (
|
||||
<NotePreview
|
||||
key={date.toString()}
|
||||
host={props.host}
|
||||
|
Loading…
Reference in New Issue
Block a user