fix(tag-list): missing argument `tagsPerPage` for `getNumPages` function

This commit is contained in:
Joxit 2023-10-18 23:57:59 +02:00
parent 7991442fce
commit e79a20a5e5
No known key found for this signature in database
GPG Key ID: F526592B8E012263
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -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",

View File

@ -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) {
@ -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,