Skip to content

How to filter by items and subItems #5501

Discussion options

You must be logged in to vote

i do:

{
brand: 'brand1',
category: {
subcategories: ['brand1', 'brand12', 'brand123'],
title: 'title'
},
category_id: 12,
id: 1,
model: 'Pilot',
name: 'Pilot',
popularity: null,
price: 59020,
search_keywords: 'pilot',
site_url: 'products/pilot',
status: 'Опубликован'
}

{
        accessorKey: 'category',
        cell: info => (
          <Link
            className={styles.link}
            href={`${PAGE_CATEGORIES}/${info?.row?.original?.category_id}`}
            title='Редактировать'
          >
            {info?.row?.original?.category?.title}
          </Link>
        ),
        filterFn: (row, columnId, filterValue) => {
          if (!filterValue) return true

          /** получ…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tacticSugar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant