Fix plus sorting button (#12513)

This commit is contained in:
Nicolas Mowen 2024-07-19 08:08:50 -06:00 committed by GitHub
parent f2c46408c4
commit 29345c429a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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