fix url and rm hack
This commit is contained in:
parent
f863f850d1
commit
2a7782fbae
1 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,7 @@ import {
|
|||
asyncStateFetch,
|
||||
} from "../../../context/auth/AdminClient";
|
||||
|
||||
import { useParams, Link } from "react-router-dom";
|
||||
import { Link, useParams, useRouteMatch } from "react-router-dom";
|
||||
|
||||
interface ComponentMapperRepresentation {
|
||||
config?: Record<string, any>;
|
||||
|
@ -50,6 +50,8 @@ export const LdapMapperList = () => {
|
|||
const adminClient = useAdminClient();
|
||||
const { addAlert } = useAlerts();
|
||||
|
||||
const { url } = useRouteMatch();
|
||||
|
||||
// const [mapperAction, setMapperAction] = useState(false);
|
||||
|
||||
const handleError = useErrorHandler();
|
||||
|
@ -101,7 +103,6 @@ export const LdapMapperList = () => {
|
|||
// .sort((a, b) => a.priority - b.priority)
|
||||
);
|
||||
|
||||
const url = "mappers";
|
||||
const MapperLink = (mapper: ComponentMapperRepresentation) => (
|
||||
<>
|
||||
<Link to={`${url}/${mapper.id}`}>{mapper.name}</Link>
|
||||
|
|
Loading…
Reference in a new issue