Skip to content

Commit

Permalink
fix(notes): fix note block recursing
Browse files Browse the repository at this point in the history
  • Loading branch information
thesophiaxu committed Jan 17, 2022
1 parent 85a6da8 commit 224acb9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { setRef, Typography } from '@material-ui/core';
import React, { FormEvent } from 'react';
import { byElementIndex, unpad } from 'unigraph-dev-common/lib/utils/entityUtils';
import _ from 'lodash';
import { blobToBase64, buildGraph, getRandomInt } from 'unigraph-dev-common/lib/utils/utils';
import { blobToBase64, buildGraph, getRandomInt, UnigraphObject } from 'unigraph-dev-common/lib/utils/utils';
import { Actions } from 'flexlayout-react';
import { FiberManualRecord, MoreVert } from '@material-ui/icons';
import stringify from 'json-stable-stringify';
Expand Down Expand Up @@ -843,9 +843,10 @@ export function DetailedNoteBlock({ data, isChildren, callbacks, options, isColl
zIndex: 999,
}}
>
{buildGraph(subentities)
{subentities
.map((el: any) => new UnigraphObject(el))
// .filter((el) => (el as any)?.type?.['unigraph.id'])
.map((el: any, elindex) => {
.map((el: any, elindex: any) => {
const isCol = isChildrenCollapsed[el.uid];
return (
<OutlineComponent
Expand Down

0 comments on commit 224acb9

Please sign in to comment.