parent
0f85e3557b
commit
f1366e8e19
2 changed files with 4 additions and 4 deletions
|
|
@ -4,12 +4,12 @@ export const getRedirection = (
|
|||
redirectionFunc: (href: string) => void,
|
||||
) => {
|
||||
if (!isCurrentWorkspaceEditor) {
|
||||
redirectionFunc(`/app/${app.app_id}/overview`)
|
||||
redirectionFunc(`/app/${app.id}/overview`)
|
||||
}
|
||||
else {
|
||||
if (app.mode === 'workflow' || app.mode === 'advanced-chat')
|
||||
redirectionFunc(`/app/${app.app_id}/workflow`)
|
||||
redirectionFunc(`/app/${app.id}/workflow`)
|
||||
else
|
||||
redirectionFunc(`/app/${app.app_id}/configuration`)
|
||||
redirectionFunc(`/app/${app.id}/configuration`)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue