mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
fix redirect after pull (#7168)
This commit is contained in:
parent
30be38b2ed
commit
38f1dcead5
@ -14,7 +14,7 @@ import { RequestGroup } from '../../models/request-group';
|
||||
import { UnitTest } from '../../models/unit-test';
|
||||
import { UnitTestSuite } from '../../models/unit-test-suite';
|
||||
import { WebSocketRequest } from '../../models/websocket-request';
|
||||
import { Workspace } from '../../models/workspace';
|
||||
import { scopeToActivity, Workspace } from '../../models/workspace';
|
||||
import {
|
||||
BackendProject,
|
||||
Snapshot,
|
||||
@ -161,8 +161,13 @@ export const pullRemoteCollectionAction: ActionFunction = async ({
|
||||
remoteProject: project,
|
||||
});
|
||||
|
||||
const workspace = await models.workspace.getById(workspaceId);
|
||||
|
||||
invariant(workspace, 'Workspace not found');
|
||||
const activity = scopeToActivity(workspace?.scope);
|
||||
|
||||
return redirect(
|
||||
`/organization/${organizationId}/project/${projectId}/workspace/${workspaceId}/debug`
|
||||
`/organization/${organizationId}/project/${projectId}/workspace/${workspaceId}/${activity}`
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user