fix(SW-2933): Making the hotels/city listing render correctly with active filter on page load
Approved-by: Christian Andolf Approved-by: Matilda Landström
This commit is contained in:
@@ -14,6 +14,8 @@ import type { DestinationDataProviderProps } from "@/types/providers/destination
|
||||
export default function DestinationDataProvider({
|
||||
allCities = [],
|
||||
allHotels,
|
||||
allFilters,
|
||||
filterFromUrl,
|
||||
sortItems,
|
||||
children,
|
||||
}: DestinationDataProviderProps) {
|
||||
@@ -25,6 +27,8 @@ export default function DestinationDataProvider({
|
||||
storeRef.current = createDestinationDataStore({
|
||||
allCities,
|
||||
allHotels,
|
||||
allFilters,
|
||||
filterFromUrl,
|
||||
pathname,
|
||||
sortItems,
|
||||
searchParams,
|
||||
|
||||
Reference in New Issue
Block a user