Skip to content

Commit

Permalink
fix: fixed basic sorting of tables, fixes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
unxsist committed Aug 16, 2024
1 parent 80a0764 commit a940b9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"tauri": {
"updater": {
"active": true,
"endpoints": ["https://www.jet-pilot.app/latest.json"],
"endpoints": ["https://updates.jet-pilot.app/latest.json"],
"dialog": false,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDVDNUVCM0NBRDZFNzFFOEIKUldTTEh1Zld5ck5lWEx6MEdwZXp4cHBReDR6dUtac3pNUm9GbUxvcFhKS28wOTJQL1BqNkFiN2EK"
},
Expand Down
4 changes: 3 additions & 1 deletion src/components/ui/VirtualDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { UnwrapRef } from "vue";
import {
FlexRender,
getCoreRowModel,
getSortedRowModel,
useVueTable,
SortingState,
} from "@tanstack/vue-table";
Expand Down Expand Up @@ -71,7 +72,8 @@ const table = useVueTable({
columnVisibility: props.visibleColumns,
},
getCoreRowModel: getCoreRowModel(),
manualSorting: true,
getSortedRowModel: getSortedRowModel(),
manualSorting: false,
state: {
get sorting() {
return sorting.value;
Expand Down

0 comments on commit a940b9f

Please sign in to comment.