Merged in feat/SW-1077-enter-details-edit-room (pull request #1360)
Feat/SW-1077 enter details edit room * feat(SW-1077): persist state when changing rooms * fix: issue with step state when closing accordion and transition to correct room when modifying step Approved-by: Pontus Dreij
This commit is contained in:
@@ -36,9 +36,7 @@ export default function SelectedRoom({
|
||||
function changeRoom() {
|
||||
modifyRate(roomIndex)
|
||||
startTransition(() => {
|
||||
const newSearchParams = new URLSearchParams(searchParamsStr)
|
||||
newSearchParams.set("modifyRateIndex", roomIndex.toString())
|
||||
router.push(`${selectRate(lang)}?${newSearchParams.toString()}`)
|
||||
router.push(`${selectRate(lang)}?${searchParamsStr}`)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user