Dont add trailing slash to file manager row NavLink

This commit is contained in:
Griffin T 2020-11-09 16:14:09 +08:00
parent 085fa8dcb5
commit f65cdd2dfb

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}
>