теперь отправляю названия атрибутов
This commit is contained in:
1 parent
50c95665c8
commit
0c927a57f6
1 file changed
+1
-1
@@ -27,7 +27,7 @@ export const CategoryFilters = () => {
|
||||
<div className={styles.blockTitle}>{`${attr.name}:`}</div>
|
||||
<div className={styles.options}>
|
||||
{attr.vals.map(v => {
|
||||
const key = `attr_${attr.id}`;
|
||||
const key = `${attr.name}`;
|
||||
const active = local[key]?.includes(v.val);
|
||||
return (
|
||||
<label key={v.id} className={styles.opt}>
|
||||
|
||||
Reference in new issue
Block a user