Skip to content

Commit

Permalink
fix: add missing getInitialProps on organisation-request page
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Apr 26, 2021
1 parent 7c93ccd commit 941b1aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/pages/analyst/organisation-requests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {organisationRequestsQueryResponse} from 'organisationRequestsQuery.graph
import DefaultLayout from 'layouts/default-layout';
import OrganisationRequestsTable from 'containers/Admin/OrganisationRequestsTable';
import {INCENTIVE_ANALYST, ADMIN_GROUP} from 'data/group-constants';
import {DEFAULT_PAGE_SIZE} from 'components/FilterableTable/FilterableTablePagination';

const ALLOWED_GROUPS = [INCENTIVE_ANALYST, ...ADMIN_GROUP];

Expand Down Expand Up @@ -45,6 +46,16 @@ class OrganisationRequests extends Component<Props> {
}
`;

static async getInitialProps() {
return {
variables: {
order_by: 'OPERATOR_NAME_ASC',
pageSize: DEFAULT_PAGE_SIZE,
offset: 0
}
};
}

render() {
const {query} = this.props;
return (
Expand Down

0 comments on commit 941b1aa

Please sign in to comment.