BlueprintsSideBar: reset pagination on "View all"
This commit is contained in:
parent
7d92d8ef71
commit
88e67b3e4c
1 changed files with 7 additions and 1 deletions
|
|
@ -94,6 +94,12 @@ const BlueprintsSidebar = () => {
|
|||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const handleClickViewAll = () => {
|
||||
dispatch(setBlueprintsOffset(0));
|
||||
dispatch(setBlueprintId(undefined));
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Stack hasGutter>
|
||||
|
|
@ -109,7 +115,7 @@ const BlueprintsSidebar = () => {
|
|||
ouiaId={`clear-selected-blueprint-button`}
|
||||
variant="link"
|
||||
isDisabled={!selectedBlueprintId}
|
||||
onClick={() => dispatch(setBlueprintId(undefined))}
|
||||
onClick={handleClickViewAll}
|
||||
>
|
||||
View all
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue