Skip to content

Commit

Permalink
fix: use template crash (apitable#1654)
Browse files Browse the repository at this point in the history
Submit a pull request for this project.

<!-- If you have an Issue that related to this Pull Request, you can
copy this Issue's description -->

# Why? 
<!-- 
> Related to which issue?
> Why we need this pull request?
> What is the user story for this pull request? 
-->


# What?
<!-- 
> Can you describe this feature in detail?
> Who can benefit from it? 
-->


# How?
<!-- 
> Do you have a simple description of how this pull request is
implemented?
-->

Co-authored-by: Chambers <[email protected]>
  • Loading branch information
nagisakon and ChambersChan authored Mar 11, 2024
1 parent a1eca98 commit 698a296
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const transformNodeTreeData = (data: INode[]) => {
}

return data.reduce((prev, node) => {
if(!node) return prev
if ((node.type !== ConfigConstant.NodeType.FOLDER && node.type !== ConfigConstant.NodeType.ROOT) || !node.permissions.childCreatable) {
// Skip nodes that are not folders、roots or cannot have children
return prev;
Expand Down

0 comments on commit 698a296

Please sign in to comment.