mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix
This commit is contained in:
@@ -294,11 +294,14 @@ export const path_to_root = (root, child) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const is_expandable = node =>
|
export const is_expandable = node =>
|
||||||
|
is_native_fn(node)
|
||||||
|
? (node.children != null && node.children.length != 0)
|
||||||
|
|| node.has_more_children
|
||||||
// Hosted node always can be expanded, even if has not children
|
// Hosted node always can be expanded, even if has not children
|
||||||
// Toplevel cannot be expanded if has no children
|
// Toplevel cannot be expanded if has no children
|
||||||
(!is_native_fn(node) && !node.toplevel)
|
: node.toplevel
|
||||||
||
|
? (node.children != null && node.children.length != 0)
|
||||||
(node.children != null || node.has_more_children)
|
: true
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Right -
|
Right -
|
||||||
|
|||||||
Reference in New Issue
Block a user