Skip to content

Commit

Permalink
fix(tag-list): missing argument tagsPerPage for getNumPages function
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Oct 18, 2023
1 parent 7991442 commit e79a20a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/docker-registry-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docker-registry-ui",
"version": "2.5.5",
"version": "2.5.6",
"type": "module",
"scripts": {
"format": "npm run format-html && npm run format-js && npm run format-riot",
Expand Down
4 changes: 2 additions & 2 deletions src/components/tag-list/tag-list.riot
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
.sort(self.tagComparator);
window.requestAnimationFrame(self.onResize);
self.update({
page: Math.min(state.page, getNumPages(tags)),
page: Math.min(state.page, getNumPages(tags, props.tagsPerPage)),
tags,
});
} else if (this.status === 404) {
Expand All @@ -153,7 +153,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
},
onPageUpdate(idx) {
const labels = getPageLabels(this.state.page, getNumPages(this.state.tags));
const labels = getPageLabels(this.state.page, getNumPages(this.state.tags, this.props.tagsPerPage));
const page = labels[idx].page;
this.update({
page: page,
Expand Down

0 comments on commit e79a20a

Please sign in to comment.