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