mirror of
https://github.com/logto-io/logto.git
synced 2025-03-10 22:22:45 -05:00
fix: the destination of switch to another passwordless connector (#3437)
This commit is contained in:
parent
658d905fe0
commit
36a88abc9b
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ import ConnectorTabs from './components/ConnectorTabs';
|
||||||
import ConnectorTypeName from './components/ConnectorTypeName';
|
import ConnectorTypeName from './components/ConnectorTypeName';
|
||||||
import * as styles from './index.module.scss';
|
import * as styles from './index.module.scss';
|
||||||
|
|
||||||
|
// TODO: refactor path-related operation utils in both Connectors and ConnectorDetails page
|
||||||
const getConnectorsPathname = (isSocial: boolean) =>
|
const getConnectorsPathname = (isSocial: boolean) =>
|
||||||
`/connectors/${isSocial ? ConnectorsTabs.Social : ConnectorsTabs.Passwordless}`;
|
`/connectors/${isSocial ? ConnectorsTabs.Social : ConnectorsTabs.Passwordless}`;
|
||||||
|
|
||||||
|
@ -202,7 +203,7 @@ const ConnectorDetails = () => {
|
||||||
setIsSetupOpen(false);
|
setIsSetupOpen(false);
|
||||||
|
|
||||||
if (connectorId) {
|
if (connectorId) {
|
||||||
navigate(`${getConnectorsPathname(isSocial)}/${connectorId}`);
|
navigate(`${getConnectorsPathname(isSocial)}/guide/${connectorId}`);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue