feat: complete tree shell cutover and regression coverage
This commit is contained in:
@@ -96,6 +96,12 @@ function readKernelSidebarProjection(
|
||||
return camelCaseProjection;
|
||||
}
|
||||
|
||||
if (Array.isArray(result.documents) && result.documents.length > 0) {
|
||||
// 说明:部分 query transport 只回 documents,没有同步附带 projection。
|
||||
// 这里按同一协议即时重建,避免 UI 把缺失节点全部降级到根层。
|
||||
return buildProjectionContract(result.documents);
|
||||
}
|
||||
|
||||
return EMPTY_KERNEL_SIDEBAR_PROJECTION;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user