add edit notice and clean code
This commit is contained in:
@@ -134,7 +134,6 @@ export default function Notices() {
|
||||
|
||||
Object.keys(params).forEach((key) => {
|
||||
if (key.startsWith("attribute_")) {
|
||||
// console.log("Filtering by attribute:", key);
|
||||
const attributeName = key.replace("attribute_", "");
|
||||
const attributeValue = params[key];
|
||||
|
||||
@@ -207,7 +206,6 @@ export default function Notices() {
|
||||
newParams[`attribute_${attributeName}`] = value;
|
||||
}
|
||||
|
||||
// console.log("New Params:", newParams);
|
||||
router.replace({
|
||||
pathname: "/notices",
|
||||
params: newParams,
|
||||
@@ -250,8 +248,6 @@ export default function Notices() {
|
||||
categories?.find((cat) => cat.value === params.category)) ||
|
||||
null;
|
||||
|
||||
// console.log("Filtered Notices:", filteredNotices);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Box
|
||||
|
||||
Reference in New Issue
Block a user