File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
ui/src/components/map/utils Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -12,24 +12,22 @@ import {
1212} from 'react' ;
1313import { areEqual , memoizeOne } from '../../../utils' ;
1414import {
15+ UrlStateDeserializers ,
16+ UrlStateSerializers ,
1517 parsePriorities ,
1618 serializeArray ,
19+ serializeUrlSearchState ,
1720 splitString ,
18- } from '../../common/hooks/typedUrlStateHelpers' ;
19- import {
20- UrlStateDeserializers ,
21- UrlStateSerializers ,
22- serializeState ,
2321 useTypedUrlState ,
24- } from '../../common/hooks/useTypedUrlState ' ;
22+ } from '../../common/hooks/typedRouterState ' ;
2523import {
2624 StopSearchFilters ,
2725 defaultFilters ,
2826} from '../../stop-registry/search/types' ;
2927import {
3028 filterDeserializers ,
3129 filterSerializers ,
32- } from '../../stop-registry/search/utils/useStopSearchUrlState ' ;
30+ } from '../../stop-registry/search/utils/useStopSearchRouterState ' ;
3331import {
3432 DisplayedRouteParams ,
3533 MapUrlState ,
@@ -238,7 +236,7 @@ export function useMapObservationDate() {
238236}
239237
240238export function mapUrlStateToSearch ( state : OpenMapUrlState ) : string {
241- return serializeState ( serializers , defaultValues , {
239+ return serializeUrlSearchState ( serializers , defaultValues , {
242240 ...defaultValues ,
243241 ...( state . displayedRoute ?? { } ) ,
244242 ...( state . filters ?? { } ) ,
You can’t perform that action at this time.
0 commit comments