The roots query only had id, title columns but the tree builder accessed r['parent_section'] which didn't exist in the result row. Added parent_section to the SELECT to fix folder type detection.
The roots query only had id, title columns but the tree builder accessed r['parent_section'] which didn't exist in the result row. Added parent_section to the SELECT to fix folder type detection.