mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
support attributes in search input
This commit is contained in:
parent
d4ceb51c8d
commit
89774fc6bf
@ -399,7 +399,7 @@ export default function InputWithTags({
|
||||
newFilters.sort = value as SearchSortType;
|
||||
break;
|
||||
default:
|
||||
// Handle array types (cameras, labels, subLabels, zones)
|
||||
// Handle array types (cameras, labels, sub_labels, attributes, zones)
|
||||
if (!newFilters[type]) newFilters[type] = [];
|
||||
if (Array.isArray(newFilters[type])) {
|
||||
if (!(newFilters[type] as string[]).includes(value)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user