Skip to content

Commit

Permalink
Merge pull request #711 from Financial-Times/ENTST-513-sharing-highli…
Browse files Browse the repository at this point in the history
…ghts-page-reloads-when-uses-saves-highlights-via-the-share-modal

remove page reload when saving highlights
  • Loading branch information
jkerr321 authored Jun 15, 2023
2 parents e6f8b39 + 8532f54 commit 785b217
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/x-gift-article/src/HighlightSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ export default ({

if (response) {
saveHighlightsHandler()
params.delete('highlights')
url.search = params.toString()
localStorage.setItem('showSuccessSavedMessage', 'true')
location.href = url.toString()
dispatchEvent(new CustomEvent('removeHighlightsSave'))
}
}

Expand Down

0 comments on commit 785b217

Please sign in to comment.