mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
Remove score sorting constraint (#19501)
Do not require a score filter to be applied in order to sort by object score.
This commit is contained in:
@@ -131,10 +131,7 @@ export default function SearchFilterGroup({
|
||||
);
|
||||
|
||||
const availableSortTypes = useMemo(() => {
|
||||
const sortTypes = ["date_asc", "date_desc"];
|
||||
if (filter?.min_score || filter?.max_score) {
|
||||
sortTypes.push("score_desc", "score_asc");
|
||||
}
|
||||
const sortTypes = ["date_asc", "date_desc", "score_desc", "score_asc"];
|
||||
if (filter?.min_speed || filter?.max_speed) {
|
||||
sortTypes.push("speed_desc", "speed_asc");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user