Skip to content

Commit

Permalink
fixed a renaming problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Krebs committed Oct 25, 2023
1 parent 01e58a5 commit 99e0028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugo/assets/scripts/domainmodel/domainmodel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { buildWorkerDefinition } from "monaco-editor-workers";
import React from "react";
import { createRoot } from "react-dom/client";
import { Diagnostic, DocumentChangeResponse, LangiumAST } from "../langium-utils/langium-ast";
import { DomainModelAstNode, example, getTreeNode, syntaxHighlighting } from "./domainmodel-tools";
import { DomainModelAstNode, example, getMainTreeNode, syntaxHighlighting } from "./domainmodel-tools";
import { UserConfig } from "monaco-editor-wrapper";
import { createUserConfig } from "../utils";
import D3Tree from "./d3tree";
Expand Down Expand Up @@ -85,7 +85,7 @@ class App extends React.Component<{}, AppState> {
// if there are no errors, render the tree
if (this.state.diagnostics == null || this.state.diagnostics.filter((i) => i.severity === 1).length == 0) {
return (
<D3Tree data={getTreeNode(ast)} />
<D3Tree data={getMainTreeNode(ast)} />
);
}

Expand Down

0 comments on commit 99e0028

Please sign in to comment.