44 */
55
66import React , { useLayoutEffect } from "react"
7- import { createFileRoute , retainSearchParams } from "@tanstack/react-router"
7+ import { createFileRoute } from "@tanstack/react-router"
88import { z } from "zod"
99import { MessagesProvider } from "@cloudoperators/juno-messages-provider"
1010import AlertDetail from "../components/alerts/AlertDetail"
@@ -17,7 +17,6 @@ import { isObjectWithKeys } from "../lib/utils"
1717
1818const searchSchema = z
1919 . object ( {
20- org : z . string ( ) . optional ( ) ,
2120 searchTerm : z . string ( ) . optional ( ) ,
2221 showDetailsFor : z . string ( ) . optional ( ) ,
2322 predefinedFilter : z . string ( ) . optional ( ) ,
@@ -41,13 +40,6 @@ const searchSchema = z
4140
4241export const Route = createFileRoute ( "/alerts" ) ( {
4342 validateSearch : searchSchema ,
44- search : {
45- /**
46- * TODO: remove it when no longer needed
47- * but we need to keep "org" search parameter due to it's significance in the shell app.
48- */
49- middlewares : [ retainSearchParams ( [ "org" ] ) ] ,
50- } ,
5143 beforeLoad : ( { search } ) => {
5244 // extract alerts specific state from the URL search params
5345 const { activeFilters, pausedFilters, predefinedFilter, searchTerm, showDetailsFor } =
0 commit comments