Fixed id sorting
This commit is contained in:
		@@ -22,7 +22,7 @@
 | 
			
		||||
  import GenerateSponsoringContracts from "../pdf_generation/GenerateSponsoringContracts.svelte";
 | 
			
		||||
  import InputElement from "../shared/InputElement.svelte";
 | 
			
		||||
  import TableActions from "../shared/TableActions.svelte";
 | 
			
		||||
  import { groupFilter } from "../shared/tablefilters";
 | 
			
		||||
  import { groupFilter, idFilter } from "../shared/tablefilters";
 | 
			
		||||
  import DeleteRunnerModal from "./DeleteRunnerModal.svelte";
 | 
			
		||||
  import Toastify from "toastify-js";
 | 
			
		||||
 | 
			
		||||
@@ -92,15 +92,15 @@
 | 
			
		||||
      enableColumnFilter: false,
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      accessorKey: "id",
 | 
			
		||||
      accessorKey: "actions",
 | 
			
		||||
      header: () => $_("action"),
 | 
			
		||||
      cell: (info) => {
 | 
			
		||||
        return renderComponent(TableActions, {
 | 
			
		||||
          detailsLink: `./${info.getValue()}`,
 | 
			
		||||
          detailsLink: `./${info.row.original.id}`,
 | 
			
		||||
          deleteAction: () => {
 | 
			
		||||
            active_delete =
 | 
			
		||||
              current_runners[
 | 
			
		||||
                current_runners.findIndex((r) => r.id == info.getValue())
 | 
			
		||||
                current_runners.findIndex((r) => r.id == info.row.original.id)
 | 
			
		||||
              ];
 | 
			
		||||
          },
 | 
			
		||||
          deleteEnabled:
 | 
			
		||||
@@ -118,6 +118,7 @@
 | 
			
		||||
    columns: columns,
 | 
			
		||||
    filterFns: {
 | 
			
		||||
      group: groupFilter,
 | 
			
		||||
      idFilter: idFilter,
 | 
			
		||||
    },
 | 
			
		||||
    initialState: {
 | 
			
		||||
      pagination: {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user