Merge pull request #2687 from occanowey/fix/file_manager_404

Dont add trailing slash to file manager rows
This commit is contained in:
Dane Everitt 2020-11-10 10:46:20 -08:00 committed by GitHub
commit a07e6bd36f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ const Clickable: React.FC<{ file: FileObject }> = memo(({ file, children }) => {
</div>
:
<NavLink
to={`${match.url}/${file.isFile ? 'edit/' : ''}#${destination}`}
to={`${match.url}${file.isFile ? '/edit' : ''}#${destination}`}
css={tw`flex flex-1 text-neutral-300 no-underline p-3 overflow-hidden truncate`}
onClick={onRowClick}
>