Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
763dbb4fa8
commit
26a9f8cbb5
@@ -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}%`);
|
||||
|
||||
Reference in New Issue
Block a user