добавил флаг

This commit is contained in:
Joe_Peach committed 2026-05-25 23:54:43 +03:00
1 parent b8422f5472
commit 846e8ef91a
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ export const CategoryFilters = () => {
<div className={styles.blockTitle}>{`${attr.name}:`}</div> <div className={styles.blockTitle}>{`${attr.name}:`}</div>
<div className={styles.options}> <div className={styles.options}>
{attr.vals.map(v => { {attr.vals.map(v => {
const key = `${attr.name}`; const key = `${attr.flag}`;
const active = local[key]?.includes(v.val); const active = local[key]?.includes(v.val);
return ( return (
<label key={v.id} className={styles.opt}> <label key={v.id} className={styles.opt}>
+1
View File
@@ -6,6 +6,7 @@ export interface CategoryAtrVals{
export interface CategoryAtributes { export interface CategoryAtributes {
id: number; id: number;
name: string; name: string;
flag: string;
vals: CategoryAtrVals[]; vals: CategoryAtrVals[];
} }