mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Set filter to undefined when it's empty on findExceptionLists method (#128455)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
bf2769d7ee
commit
a07c47c652
2 changed files with 26 additions and 1 deletions
|
@ -231,7 +231,7 @@ const fetchExceptionLists = async ({
|
|||
signal,
|
||||
}: ApiCallFetchExceptionListsProps): Promise<FoundExceptionListSchema> => {
|
||||
const query = {
|
||||
filter: filters,
|
||||
filter: filters || undefined,
|
||||
namespace_type: namespaceTypes,
|
||||
page: pagination.page ? `${pagination.page}` : '1',
|
||||
per_page: pagination.perPage ? `${pagination.perPage}` : '20',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue