Skip to content

Commit

Permalink
feat: fix es error for passing empty range query
Browse files Browse the repository at this point in the history
  • Loading branch information
pghorpade committed Nov 20, 2024
1 parent 75d052a commit 405b510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composables/useSearchFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function paginatedSearchFilters(
}

function parseDateRange(dates) {
const dateObj = { range: {} }
const dateObj = { range: { startDate: {} } }

if (!dates || dates.length === 0) return dateObj // Ensure it returns early if dates are empty

Expand Down

0 comments on commit 405b510

Please sign in to comment.