add edit notice and clean code

This commit is contained in:
Patryk
2025-06-11 20:56:39 +02:00
parent b323f02654
commit 3c042d2cfb
7 changed files with 118 additions and 67 deletions

View File

@@ -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