1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 17:12:30 +01:00

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