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 = [],
|
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 />;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user