Skip to content

Commit

Permalink
(fix) fix children component issue, fix endpoint table pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilShahi committed Sep 3, 2022
1 parent 97f3b7d commit d26214a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/EndpointList/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ const EndpointFilters: React.FC<EndpointFilterProps> = React.memo(
</Box>
</Stack>
<InputGroup>
<InputLeftElement pointerEvents="none" children={<GoSearch />} />
<InputLeftElement pointerEvents="none">
<GoSearch />
</InputLeftElement>
<Input
onChange={e => setSearchQuery(e.target.value)}
w={{ base: "full", lg: "xs" }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/EndpointList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const EndpointList: React.FC<EndpointListProps> = React.memo(
<List
endpoints={endpoints}
totalCount={totalCount}
currentPage={1}
currentPage={params.offset / ENDPOINT_PAGE_LIMIT + 1}
setCurrentPage={setCurrentPage}
fetching={fetching}
setOrdering={(e: "ASC" | "DESC") => {}}
Expand Down

0 comments on commit d26214a

Please sign in to comment.