mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-27 22:48:29 +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;
|
newFilters.sort = value as SearchSortType;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Handle array types (cameras, labels, subLabels, zones)
|
// Handle array types (cameras, labels, sub_labels, attributes, zones)
|
||||||
if (!newFilters[type]) newFilters[type] = [];
|
if (!newFilters[type]) newFilters[type] = [];
|
||||||
if (Array.isArray(newFilters[type])) {
|
if (Array.isArray(newFilters[type])) {
|
||||||
if (!(newFilters[type] as string[]).includes(value)) {
|
if (!(newFilters[type] as string[]).includes(value)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user