Skip to content

Commit

Permalink
Merge branch 'fix/no-infinite-tree-when-tree-tree' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Nov 1, 2024
2 parents cd6a85d + a15e850 commit e1296aa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gisce/react-ooui",
"version": "2.29.0-alpha.4",
"version": "2.29.0",
"engines": {
"node": "20.5.0"
},
Expand Down Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@ant-design/plots": "^1.0.9",
"@gisce/fiber-diagram": "2.1.1",
"@gisce/ooui": "2.14.0-alpha.3",
"@gisce/ooui": "2.14.0",
"@gisce/react-formiga-components": "1.8.0",
"@gisce/react-formiga-table": "1.8.3",
"@monaco-editor/react": "^4.4.5",
Expand Down
4 changes: 2 additions & 2 deletions src/views/actionViews/TreeActionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export const TreeActionView = (props: TreeActionViewProps) => {
} = props;

const isInfiniteTree = useMemo(() => {
if (!treeView?.arch) {
if (!treeView?.arch || treeView.isExpandable) {
return false;
}
const tagValue = extractTreeXmlAttribute(treeView?.arch, "infinite");
const tagValue = extractTreeXmlAttribute(treeView.arch, "infinite");
return tagValue === "1";
}, [treeView]);

Expand Down

0 comments on commit e1296aa

Please sign in to comment.