(
draft: (typeof sortedDrafts)[number]
)
| 2163 | ) |
| 2164 | ); |
| 2165 | const getDraftSectionId = ( |
| 2166 | draft: (typeof sortedDrafts)[number] |
| 2167 | ): string | null => |
| 2168 | typeof draft.subProjectPath === "string" && |
| 2169 | userProjects.get(draft.subProjectPath)?.parentProjectPath === |
| 2170 | projectPath |
| 2171 | ? draft.subProjectPath |
| 2172 | : null; |
| 2173 | |
| 2174 | // Drafts can reference a section that has since been deleted. |
| 2175 | // Treat those as unsectioned so they remain accessible. |
no test coverage detected