File tree 9 files changed +0
-36
lines changed
9 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export const Route = createFileRoute(
20
20
stage : z . string ( ) . optional ( ) ,
21
21
} )
22
22
. parse ( search ) ,
23
- preSearchFilters : [ ( ) => ( { stage : "rental-information" } ) ] ,
24
23
component : CheckinAgreementPage ,
25
24
} ) ;
26
25
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export const Route = createFileRoute(
20
20
stage : z . string ( ) . optional ( ) ,
21
21
} )
22
22
. parse ( search ) ,
23
- preSearchFilters : [ ( ) => ( { stage : "rental-information" } ) ] ,
24
23
component : EditAgreementPage ,
25
24
} ) ;
26
25
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ import {
53
53
AgreementDateTimeColumns ,
54
54
sortColOrderByOrderIndex ,
55
55
} from "@/lib/utils/columns" ;
56
- import { STORAGE_DEFAULTS } from "@/lib/utils/constants" ;
57
56
import { getXPaginationFromHeaders } from "@/lib/utils/headers" ;
58
57
import { normalizeAgreementListSearchParams } from "@/lib/utils/normalize-search-params" ;
59
58
import { insertSpacesBeforeCaps } from "@/lib/utils/random" ;
@@ -64,13 +63,6 @@ import { sortObjectKeys } from "@/lib/utils";
64
63
65
64
export const Route = createFileRoute ( "/_auth/(agreements)/agreements/" ) ( {
66
65
validateSearch : ( search ) => AgreementSearchQuerySchema . parse ( search ) ,
67
- preSearchFilters : [
68
- ( search ) => ( {
69
- page : search ?. page || 1 ,
70
- size : search ?. size || parseInt ( STORAGE_DEFAULTS . tableRowCount ) ,
71
- filters : search ?. filters ?? undefined ,
72
- } ) ,
73
- ] ,
74
66
beforeLoad : ( { context, search } ) => {
75
67
const auth = getAuthFromRouterContext ( context ) ;
76
68
const parsedSearch = normalizeAgreementListSearchParams ( search ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ export const Route = createFileRoute("/_auth/(agreements)/agreements/new")({
17
17
stage : z . string ( ) . optional ( ) ,
18
18
} )
19
19
. parse ( search ) ,
20
- preSearchFilters : [ ( ) => ( { stage : "rental-information" } ) ] ,
21
20
component : AddAgreementPage ,
22
21
} ) ;
23
22
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ import { Container } from "@/routes/-components/container";
47
47
48
48
import { getAuthFromRouterContext } from "@/lib/utils/auth" ;
49
49
import { sortColOrderByOrderIndex } from "@/lib/utils/columns" ;
50
- import { STORAGE_DEFAULTS } from "@/lib/utils/constants" ;
51
50
import { getXPaginationFromHeaders } from "@/lib/utils/headers" ;
52
51
import { normalizeCustomerListSearchParams } from "@/lib/utils/normalize-search-params" ;
53
52
import { insertSpacesBeforeCaps } from "@/lib/utils/random" ;
@@ -56,13 +55,6 @@ import { titleMaker } from "@/lib/utils/title-maker";
56
55
57
56
export const Route = createFileRoute ( "/_auth/(customers)/customers/" ) ( {
58
57
validateSearch : ( search ) => CustomerSearchQuerySchema . parse ( search ) ,
59
- preSearchFilters : [
60
- ( search ) => ( {
61
- page : search ?. page || 1 ,
62
- size : search ?. size || parseInt ( STORAGE_DEFAULTS . tableRowCount ) ,
63
- filters : search ?. filters ?? undefined ,
64
- } ) ,
65
- ] ,
66
58
beforeLoad : ( { context, search } ) => {
67
59
const auth = getAuthFromRouterContext ( context ) ;
68
60
const parsedSearch = normalizeCustomerListSearchParams ( search ) ;
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ import { Container } from "@/routes/-components/container";
49
49
50
50
import { getAuthFromRouterContext } from "@/lib/utils/auth" ;
51
51
import { sortColOrderByOrderIndex } from "@/lib/utils/columns" ;
52
- import { STORAGE_DEFAULTS } from "@/lib/utils/constants" ;
53
52
import { getXPaginationFromHeaders } from "@/lib/utils/headers" ;
54
53
import { normalizeVehicleListSearchParams } from "@/lib/utils/normalize-search-params" ;
55
54
import { insertSpacesBeforeCaps } from "@/lib/utils/random" ;
@@ -58,13 +57,6 @@ import { titleMaker } from "@/lib/utils/title-maker";
58
57
59
58
export const Route = createFileRoute ( "/_auth/(fleet)/fleet/" ) ( {
60
59
validateSearch : ( search ) => VehicleSearchQuerySchema . parse ( search ) ,
61
- preSearchFilters : [
62
- ( search ) => ( {
63
- page : search ?. page || 1 ,
64
- size : search ?. size || parseInt ( STORAGE_DEFAULTS . tableRowCount ) ,
65
- filters : search ?. filters ?? undefined ,
66
- } ) ,
67
- ] ,
68
60
beforeLoad : ( { context, search } ) => {
69
61
const auth = getAuthFromRouterContext ( context ) ;
70
62
const parsedSearch = normalizeVehicleListSearchParams ( search ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export const Route = createFileRoute(
20
20
stage : z . string ( ) . optional ( ) ,
21
21
} )
22
22
. parse ( search ) ,
23
- preSearchFilters : [ ( ) => ( { stage : "rental-information" } ) ] ,
24
23
component : EditReservationPage ,
25
24
} ) ;
26
25
Original file line number Diff line number Diff line change @@ -62,13 +62,6 @@ import { titleMaker } from "@/lib/utils/title-maker";
62
62
63
63
export const Route = createFileRoute ( "/_auth/(reservations)/reservations/" ) ( {
64
64
validateSearch : ( search ) => ReservationSearchQuerySchema . parse ( search ) ,
65
- preSearchFilters : [
66
- ( search ) => ( {
67
- page : search ?. page || 1 ,
68
- size : search ?. size || parseInt ( STORAGE_DEFAULTS . tableRowCount ) ,
69
- filters : search ?. filters ?? undefined ,
70
- } ) ,
71
- ] ,
72
65
beforeLoad : ( { context, search } ) => {
73
66
const auth = getAuthFromRouterContext ( context ) ;
74
67
const parsedSearch = normalizeReservationListSearchParams ( search ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ export const Route = createFileRoute("/_auth/(reservations)/reservations/new")({
17
17
stage : z . string ( ) . optional ( ) ,
18
18
} )
19
19
. parse ( search ) ,
20
- preSearchFilters : [ ( ) => ( { stage : "rental-information" } ) ] ,
21
20
component : AddReservationPage ,
22
21
} ) ;
23
22
You can’t perform that action at this time.
0 commit comments