1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

Fix build maybe?

This commit is contained in:
Sam Rose 2024-06-14 09:31:48 +01:00
parent 1161c185e2
commit 4e1e462dbe
No known key found for this signature in database

View file

@ -278,10 +278,7 @@ export const search = (docs: Record<string, any>[], query: RowSearchParams) => {
* @param docs the data
* @param query the JSON query
*/
export const runQuery = (
docs: Record<string, any>[],
query?: SearchFilters
) => {
export const runQuery = (docs: Record<string, any>[], query: SearchFilters) => {
if (!docs || !Array.isArray(docs)) {
return []
}