refactor: centralize documents route configuration into new useDocumentsShell hook and export related types.
This commit is contained in:
@@ -99,7 +99,7 @@ const splitLabelSegments = (input: unknown): string[] => {
|
||||
const buildFolderTreeOptions = (tree?: FolderTreeNode[] | null): SelectionAssignmentMenuItem[] => {
|
||||
const entries: SelectionAssignmentMenuItem[] = [];
|
||||
|
||||
const traverse = (nodes: FolderTreeNode[] | undefined | null, parentSegments: string[]) => {
|
||||
const traverse = (nodes: FolderTreeNode[] | null, parentSegments: string[]) => {
|
||||
if (!Array.isArray(nodes) || nodes.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user