<> - Behandlingsaktiviteter - + Behandlingsaktiviteter
- Velg overordnet behandlingsaktivitet + Velg overordnet behandlingsaktivitet
{hasAccess() && ( )} {hasAccess() && ( - )}
@@ -118,22 +105,18 @@ export const PurposeListPage = () => { onClose={() => setIsExportModalOpen(false)} > - - - - - - + diff --git a/apps/frontend/src/util/hooks/customHooks.ts b/apps/frontend/src/util/hooks/customHooks.ts index 7bbfda948..dbd144314 100644 --- a/apps/frontend/src/util/hooks/customHooks.ts +++ b/apps/frontend/src/util/hooks/customHooks.ts @@ -1,5 +1,4 @@ import { Dispatch, RefObject, SetStateAction, createRef, useEffect, useState } from 'react' -import { useLocation } from 'react-router-dom' export function useDebouncedState( initialValue: T, @@ -64,7 +63,7 @@ export function useRefs(ids: string[]) { } export function useQuery() { - const location = useLocation() + const location = window.location return new URLSearchParams(location.search) }