We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8e65dd commit d051d34Copy full SHA for d051d34
packages/libs/eda/src/lib/core/components/EntityDiagram.tsx
@@ -26,16 +26,7 @@ interface Props {
26
export function EntityDiagram(props: Props) {
27
const { selectedEntity, selectedVariable, variableLinkConfig } = props;
28
const studyMetadata = useStudyMetadata();
29
- const entityTree = useMemo((): StudyEntity => {
30
- return mapStructure(
31
- (node, children) => ({
32
- ...node,
33
- children: children.slice().reverse(),
34
- }),
35
- (entity) => entity.children ?? [],
36
- studyMetadata.rootEntity
37
- );
38
- }, [studyMetadata.rootEntity]);
+ const entityTree = studyMetadata.rootEntity;
39
const [lastVariableMap, setLastVariableMap] = useState<
40
Record<string, string>
41
>({});
0 commit comments