remove unsupported query-feature

This commit is contained in:
Florian Scholdei
2019-05-17 15:45:39 +02:00
parent fca095c3d5
commit e15039559f

View File

@@ -23,6 +23,7 @@ import {
} from "../modules/roles";
import PermissionRoleTable from "../components/PermissionRoleTable";
import { getRolesLink } from "../../../modules/indexResource";
type Props = {
baseUrl: string,
roles: RepositoryRole[],
@@ -48,27 +49,6 @@ class RepositoryRoles extends React.Component<Props> {
fetchRolesByPage(rolesLink, page);
}
componentDidUpdate = (prevProps: Props) => {
const {
loading,
list,
page,
rolesLink,
location,
fetchRolesByPage
} = this.props;
if (list && page && !loading) {
const statePage: number = list.page + 1;
if (page !== statePage || prevProps.location.search !== location.search) {
fetchRolesByPage(
rolesLink,
page,
urls.getQueryStringFromLocation(location)
);
}
}
};
render() {
const { t, loading } = this.props;