support attributes in search input

This commit is contained in:
Josh Hawkins 2025-12-17 19:12:06 -06:00
parent d4ceb51c8d
commit 89774fc6bf

View File

@ -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)) {