Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 18:59:06 +00:00
co-authored by renee-png
parent 763dbb4fa8
commit 26a9f8cbb5
+1 -1
View File
@@ -58,7 +58,7 @@ function InvoicesIndex() {
.select("*, client:clients(id, name), case:cases(id, case_number, title)", { count: "exact" })
.order("created_at", { ascending: false });
if (status !== "all") query = query.eq("status", status);
if (status !== "all") query = query.eq("status", status as any);
if (q.trim()) {
const s = q.trim().replace(/[%,]/g, " ");
query = query.or(`invoice_number.ilike.%${s}%`);