Skip to content

Commit

Permalink
TASK: Correctly consider configured loadingDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed May 15, 2024
1 parent e702288 commit 9771a80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Neos.Ui/core/src/application/LinkTypes/Node/Node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const Node = makeLinkType<NodeLinkModel, NodeLinkOptions>(
const workspaceName = usePersonalWorkspaceName();
const dimensionValues = useDimensionValues();
const siteNodeContextPath = useSiteNodeContextPath();
const loadingDepth =
const defaultLoadingDepth =
useConfiguration((c) => c.nodeTree?.loadingDepth) ?? 4;
const initialSearchTerm =
useSelector((state) => state.ui?.pageTree?.query) ?? "";
Expand Down Expand Up @@ -169,7 +169,7 @@ export const Node = makeLinkType<NodeLinkModel, NodeLinkOptions>(
workspaceName={workspaceName}
dimensionValues={dimensionValues}
startingPoint={startingPoint}
loadingDepth={loadingDepth}
loadingDepth={options.loadingDepth ?? defaultLoadingDepth}
baseNodeTypeFilter={options.baseNodeType ?? "Neos.Neos:Document"}
initialNarrowNodeTypeFilter={
initialNarrowNodeTypeFilter
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Plugin.js

Large diffs are not rendered by default.

0 comments on commit 9771a80

Please sign in to comment.