Fix plus sorting button

This commit is contained in:
Nicolas Mowen 2024-07-19 07:45:12 -06:00
parent f2c46408c4
commit 93ef02a839

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