mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix: filters list wrong status (#109)
This commit is contained in:
parent
3b3b1de51d
commit
c35744dc3a
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ function FilterList({ filters }: FilterListProps) {
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-800">
|
<tbody className="bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-800">
|
||||||
{filters.map((filter: Filter, idx) => (
|
{filters.map((filter: Filter, idx) => (
|
||||||
<FilterListItem filter={filter} key={idx} idx={idx} />
|
<FilterListItem filter={filter} key={filter.id} idx={idx} />
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -133,7 +133,7 @@ function FilterListItem({ filter, idx }: FilterListItemProps) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<tr key={filter.name}
|
<tr key={filter.id}
|
||||||
className={idx % 2 === 0 ? 'bg-white dark:bg-gray-800' : 'bg-gray-50 dark:bg-gray-800'}>
|
className={idx % 2 === 0 ? 'bg-white dark:bg-gray-800' : 'bg-gray-50 dark:bg-gray-800'}>
|
||||||
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-100">
|
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-100">
|
||||||
<Switch
|
<Switch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue