chore: Remove params requirement on fetchPage

This commit is contained in:
Tom Moor
2024-03-17 13:13:23 -04:00
parent 8bd0aa43bc
commit 4e47f4c1e2
4 changed files with 12 additions and 4 deletions

View File

@@ -262,7 +262,7 @@ export default abstract class Store<T extends Model> {
}
@action
fetchPage = async (params: FetchPageParams | undefined): Promise<T[]> => {
fetchPage = async (params?: FetchPageParams | undefined): Promise<T[]> => {
if (!this.actions.includes(RPCAction.List)) {
throw new Error(`Cannot list ${this.modelName}`);
}