Skip to content

Commit

Permalink
UIIN-2131 Clearing filters after clicking "Previous"/"Next" buttons i…
Browse files Browse the repository at this point in the history
…n Inventory tab on Browse form (#1767)
  • Loading branch information
uladislausamets authored and mkuklis committed Aug 16, 2022
1 parent b582934 commit 649c22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/InstancesList/InstancesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,8 @@ class InstancesList extends React.Component {
];

const other = parentResources.records.other;
const pagingCanGoNext = browseQueryExecuted ? !!other?.next : null;
const pagingCanGoPrevious = browseQueryExecuted ? !!other?.prev : null;
const pagingCanGoNext = !parentResources.records.isPending && (browseQueryExecuted ? !!other?.next : null);
const pagingCanGoPrevious = !parentResources.records.isPending && (browseQueryExecuted ? !!other?.prev : null);

return (
<HasCommand
Expand Down

0 comments on commit 649c22e

Please sign in to comment.