Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix(base-entity-list): Set filter as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
EndyKaufman committed Apr 27, 2018
1 parent 0f9f1aa commit 3803ca1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export class BaseEntityListComponent<TModel extends IModel> implements IBaseEnti
paginationMeta: { curPage: meta.page, perPage: meta.itemsPerPage }
});
}
onChangeFilter(filter: IEntityGridFilter) {
onChangeFilter(filter?: IEntityGridFilter) {
if (!filter) {
filter = {};
}
this.processing = true;
for (const key in filter) {
if (filter.hasOwnProperty(key)) {
Expand Down

0 comments on commit 3803ca1

Please # to comment.