mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-14 06:47:28 +00:00
Ignore invalid feed discovery limits
This commit is contained in:
parent
850cf5ea44
commit
c7abcdd16e
2 changed files with 5 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ function numberParam(value: string | null) {
|
|||
return undefined;
|
||||
}
|
||||
const parsed = Number(value);
|
||||
return Number.isFinite(parsed) ? parsed : undefined;
|
||||
return Number.isFinite(parsed) && parsed > 0 ? parsed : undefined;
|
||||
}
|
||||
|
||||
function listParam(value: string | null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue