Skip to content

Commit

Permalink
Add page to endpoint parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Onitoxan committed Jan 17, 2025
1 parent 1aa8966 commit 5beda13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default function FlowsTable(props: FlowsTableProps) {
const [state, load] = useDataLoader([query], () =>
env.model.flows.searchFlows({
limit: query.rowsPerPage,
page: query.page,
sortField: query.orderBy,
sortOrder: query.orderDir,
...parsedFilters,
Expand Down
1 change: 1 addition & 0 deletions libs/hpc-data/src/lib/flows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ export type NestedFlowFilters = t.TypeOf<typeof NESTED_FLOW_FILTERS>;

export const SEARCH_FLOWS_PARAMS = t.partial({
limit: t.number,
page: t.number,
sortOrder: t.string,
sortField: t.string,
...FLOW_FILTERS.props,
Expand Down

0 comments on commit 5beda13

Please sign in to comment.