Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/CategoryList/CategoryList.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class CategoryList extends React.Component {
return (
<div key={id}>
<div className={styles.link}>
<Link title={c.name} to={{ pathname: link }} className={className} key={id}>
<Link title={c.name} to={{ pathname: link }} className={className} key={id} onClick={() => this.props.classClicked()}>
<span>{count}</span>
<span>{c.name}</span>
</Link>
Expand Down
24 changes: 22 additions & 2 deletions src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -1883,8 +1883,28 @@ class Browser extends DashboardView {
current={current}
params={this.props.location?.search}
linkPrefix={'browser/'}
filterClicked={url => this.props.navigate(generatePath(this.context, url))}
removeFilter={filter => this.removeFilter(filter)}
filterClicked={url => {
// Reset to page 1
this.setState({
skip: 0,
});

this.props.navigate(generatePath(this.context, url));
}}
removeFilter={filter => {
// Reset to page 1
this.setState({
skip: 0,
});

this.removeFilter(filter)
}}
classClicked={() => {
// Reset to page 1
this.setState({
skip: 0,
});
}}
categories={allCategories}
/>
);
Expand Down
Loading