update fix status filter for customer,

This commit is contained in:
louiscklaw
2025-04-22 23:16:10 +08:00
parent 62da367589
commit adc04a1a40

View File

@@ -112,6 +112,10 @@ export default function Page({ searchParams }: PageProps): React.JSX.Element {
let tempFilter = [],
tempSortDir = '';
if (status) {
tempFilter.push(`status = "${status}"`);
}
if (sortDir) {
tempSortDir = `-created`;
}
@@ -136,7 +140,7 @@ export default function Page({ searchParams }: PageProps): React.JSX.Element {
// sort: tempSortDir,
// //
// });
}, [sortDir, email, phone]);
}, [sortDir, email, phone, status]);
if (showLoading) return <FormLoading />;