fix: pageLimit only accepts certain numbers

Signed-off-by: Enrico Alvarenga <enricomalvarenga@gmail.com>
This commit is contained in:
Enrico Alvarenga
2023-06-26 12:38:59 -07:00
committed by Camila Belo
parent 19d979dc48
commit 0a8fda4de9
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -11,3 +11,5 @@ app:
initialState:
pageLimit: 50
```
Acceptable values for `pageLimit` are `10`, `25`, `50` or `100`.
+2
View File
@@ -20,6 +20,8 @@ app:
pageLimit: 50
```
Acceptable values for `pageLimit` are `10`, `25`, `50` or `100`.
### Areas of Responsibility
This search plugin is primarily responsible for the following:
+1 -1
View File
@@ -33,7 +33,7 @@ export interface Config {
*
* @visibility frontend
*/
pageLimit?: number;
pageLimit?: 10 | 25 | 50 | 100;
};
};
};