Skip to content

Commit

Permalink
fix: Undo Redo for layout changs
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSusa committed Sep 20, 2020
1 parent 8626069 commit 1b48965
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { batch } from 'react-redux'
import { Actions as sliderListActions } from '../slider-list'
import { Actions as undoRedoActions } from '../undo-redo'
// import { Actions as viewSettingsActions } from '../view-settings'
Expand All @@ -24,11 +23,9 @@ export function thunkChangeListOrder(listOrder) {
}
return acc
}, [])
batch(() => {
dispatch(changeListOrder({ listOrder, lastFocusedPage }))
dispatch(
updateSliderListOfPage({ lastFocusedPage, sliderList: mergedList })
)
})
dispatch(changeListOrder({ listOrder, lastFocusedPage }))
dispatch(
updateSliderListOfPage({ lastFocusedPage, sliderList: mergedList })
)
}
}

0 comments on commit 1b48965

Please sign in to comment.