fix(frontend): apply suggestion on path validation

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
This commit is contained in:
Nicholas Tindle
2026-01-28 12:45:13 -06:00
committed by GitHub
parent ef5120ad45
commit eb6619fd0f

View File

@@ -22,7 +22,7 @@ function buildBackendUrl(path: string[], queryString: string): string {
function isWorkspaceDownloadRequest(path: string[]): boolean {
// Match pattern: api/workspace/files/{id}/download (5 segments)
return (
path.length >= 5 &&
path.length == 5 &&
path[0] === "api" &&
path[1] === "workspace" &&
path[2] === "files" &&