mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix plus sorting button (#12513)
This commit is contained in:
parent
f2c46408c4
commit
29345c429a
@ -656,9 +656,12 @@ function PlusSortSelector({
|
|||||||
<div className="flex items-center justify-evenly p-2">
|
<div className="flex items-center justify-evenly p-2">
|
||||||
<Button
|
<Button
|
||||||
variant="select"
|
variant="select"
|
||||||
|
disabled={!currentSort}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
if (currentSort) {
|
||||||
setSelectedSort(`${currentSort}_${currentDir}`);
|
setSelectedSort(`${currentSort}_${currentDir}`);
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Apply
|
Apply
|
||||||
|
Loading…
Reference in New Issue
Block a user