Skip to content

Commit

Permalink
Remove reversing children in entity diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Jan 28, 2025
1 parent a8e65dd commit d051d34
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/libs/eda/src/lib/core/components/EntityDiagram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,7 @@ interface Props {
export function EntityDiagram(props: Props) {
const { selectedEntity, selectedVariable, variableLinkConfig } = props;
const studyMetadata = useStudyMetadata();
const entityTree = useMemo((): StudyEntity => {
return mapStructure(
(node, children) => ({
...node,
children: children.slice().reverse(),
}),
(entity) => entity.children ?? [],
studyMetadata.rootEntity
);
}, [studyMetadata.rootEntity]);
const entityTree = studyMetadata.rootEntity;
const [lastVariableMap, setLastVariableMap] = useState<
Record<string, string>
>({});
Expand Down

0 comments on commit d051d34

Please sign in to comment.