Skip to content

Commit

Permalink
Don't allow zero servers per page (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
kofrezo authored Jul 21, 2023
1 parent 837b180 commit 90ed8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serveradmin/servershell/static/js/servershell/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ servershell.commands = {
servershell.submit_search();
},
perpage: function(limit) {
if (isNaN(limit) || limit < 0) {
if (isNaN(limit) || limit < 1) {
servershell.alert(`${limit} must be a number greater zero!`, 'warning');
return;
}
Expand Down

0 comments on commit 90ed8d8

Please sign in to comment.