|
|
|
@@ -205,6 +205,7 @@ const Shop: React.FC = () => { |
|
|
|
// SearchBox onSearch will call this |
|
|
|
const handleSearch = (inputs: Record<string, string>) => { |
|
|
|
setFilters(inputs); |
|
|
|
setPagingController((prev) => ({ ...prev, pageNum: 1 })); |
|
|
|
const params: Record<string, string> = {}; |
|
|
|
Object.entries(inputs || {}).forEach(([k, v]) => { |
|
|
|
if (v != null && String(v).trim() !== "") params[k] = String(v).trim(); |
|
|
|
|