Skip to content

Commit

Permalink
feat: Allow sort column to be defined in route params
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Jul 6, 2023
1 parent 6e8ba63 commit cc3fe7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import LS_KEYS from '@/constants/local-storage.keys';
/**
* STATE
*/
const initSortCol = lsGet(LS_KEYS.App.PoolSorting) || 'totalLiquidity';
const route = useRoute();
const initSortCol =
route.query?.sort || lsGet(LS_KEYS.App.PoolSorting) || 'totalLiquidity';
/**
* COMPOSABLES
Expand Down

0 comments on commit cc3fe7b

Please sign in to comment.