fix(ui): reload on sort change

This commit is contained in:
Shekar Siri 2024-10-31 15:54:01 +01:00
parent 187e24ee19
commit ff2cd695ba

View file

@ -51,8 +51,8 @@ function SessionSort() {
const onSort = ({ key }: { key: string }) => {
const [sort, order] = key.split('-');
const sign = order === 'desc' ? -1 : 1;
console.log('sort', sort, 'order', order);
searchStore.applyFilter({ order, sort });
void searchStore.fetchSessions();
onSessionSort(sort, sign);
};