Skip to content

Commit

Permalink
Replace history when navigating from broken path.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Aug 9, 2023
1 parent 2025be9 commit 32aad0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imports/dashboard/files/fileManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ const FileManager = (props: {
{path !== '/' && (
<Typography
style={{ textDecoration: 'underline', cursor: fetching ? 'wait' : 'pointer' }}
onClick={() => !fetching && updatePath(error === 'outsideServerDir' ? '/' : parentPath(path))}
onClick={() => (
!fetching &&
updatePath(error === 'outsideServerDir' ? '/' : parentPath(path), undefined, true)
)}
>
{error === 'outsideServerDir' ? 'Go to root folder?' : 'Try going up one path?'}
</Typography>
Expand Down

0 comments on commit 32aad0d

Please sign in to comment.