0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

fix(console): fix the back link of the log details page (#3805)

This commit is contained in:
Xiao Yijun 2023-05-04 12:33:38 +08:00 committed by GitHub
parent 5f4a323d26
commit cd19ff8bf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ import EventIcon from './components/EventIcon';
import * as styles from './index.module.scss'; import * as styles from './index.module.scss';
const getAuditLogDetailsRelatedResourceLink = (pathname: string) => const getAuditLogDetailsRelatedResourceLink = (pathname: string) =>
`/${pathname.slice(0, pathname.lastIndexOf('/'))}`; `${pathname.slice(0, pathname.lastIndexOf('/'))}`;
const getDetailsTabNavLink = (logId: string, userId?: string) => const getDetailsTabNavLink = (logId: string, userId?: string) =>
userId ? `/users/${userId}/logs/${logId}` : `/audit-logs/${logId}`; userId ? `/users/${userId}/logs/${logId}` : `/audit-logs/${logId}`;