Skip to content

Commit

Permalink
Merge pull request #105 from rogershi-dev/feature/registration-auth
Browse files Browse the repository at this point in the history
Added default values for currentPage and perPage in handleRepoAction()
  • Loading branch information
rogershi-dev authored Jul 14, 2024
2 parents 7d5d004 + 0dd41ae commit fde9fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ block content
modal.style.display = 'flex';
}

function handleRepoAction(repoName, hasSetWebhook, currentPage, perPage) {
function handleRepoAction(repoName, hasSetWebhook, currentPage = 1, perPage = 15) {
fetch(`/webhook/config?repo=${repoName}&hassetwebhook=${hasSetWebhook}`)
.then(response => response.json())
.then(data => {
Expand Down

0 comments on commit fde9fec

Please sign in to comment.