mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Allow resetting similarity search
This commit is contained in:
parent
31ad49b401
commit
c1ea5cd19d
@ -966,6 +966,10 @@ export function SearchTypeContent({
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => {
|
||||
updateSearchSourceFilter([
|
||||
"thumbnail",
|
||||
"description",
|
||||
] as SearchSource[]);
|
||||
setCurrentSearchSources([
|
||||
"thumbnail",
|
||||
"description",
|
||||
|
||||
@ -84,7 +84,9 @@ export default function Explore() {
|
||||
if (newFilter) {
|
||||
setSearchFilter(newFilter);
|
||||
}
|
||||
}, [similaritySearch, searchFilter, setSearchFilter]);
|
||||
// don't rerun when the filter updates
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [similaritySearch, setSearchFilter]);
|
||||
|
||||
useEffect(() => {
|
||||
if (similaritySearch) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user