Dont add trailing slash to file manager row NavLink
This commit is contained in:
parent
085fa8dcb5
commit
f65cdd2dfb
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ const Clickable: React.FC<{ file: FileObject }> = memo(({ file, children }) => {
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
<NavLink
|
<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`}
|
css={tw`flex flex-1 text-neutral-300 no-underline p-3 overflow-hidden truncate`}
|
||||||
onClick={onRowClick}
|
onClick={onRowClick}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue