update fix status filter for customer,
This commit is contained in:
@@ -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 />;
|
||||
|
||||
|
Reference in New Issue
Block a user