fix(polygon): unify dataset review workflow
This commit is contained in:
@@ -552,7 +552,10 @@ export function decodePolygonRunDetail(payload: unknown): PolygonRunDetail {
|
||||
export function resolvePolygonRunRoute(search: string): PolygonRunRoute {
|
||||
const parameters = new URLSearchParams(search);
|
||||
const workspaceValues = parameters.getAll("workspace");
|
||||
if (workspaceValues.length !== 1 || workspaceValues[0] !== "polygon-run") {
|
||||
if (
|
||||
workspaceValues.length !== 1
|
||||
|| !["polygon-datasets", "polygon-run"].includes(workspaceValues[0])
|
||||
) {
|
||||
return { active: false, runId: null, error: null };
|
||||
}
|
||||
const runValues = parameters.getAll("run");
|
||||
|
||||
Reference in New Issue
Block a user