Skip to content

Commit

Permalink
fix(harvest-lib): Redirect when close viewer modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Jan 27, 2023
1 parent a9052c0 commit 48445b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cozy-harvest-lib/src/datacards/ViewerModal.jsx
Expand Up @@ -14,7 +14,7 @@ export const ViewerModal = ({
const { pushHistory, replaceHistory } = useContext(MountPointContext)
const { data, fetchStatus } = useDataCardFiles(accountId, folderToSaveId)

const handleCloseViewer = () => replaceHistory(`/accounts`)
const handleCloseViewer = () => replaceHistory(`/accounts/${accountId}`)
const handleFileChange = (_file, newIndex) =>
pushHistory(`/viewer/${accountId}/${folderToSaveId}/${newIndex}`)

Expand Down

0 comments on commit 48445b4

Please sign in to comment.