File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ export const SortableItem = forwardRef<HTMLDivElement, SortableItemProps>((props
33
33
34
34
const router = useRouter ( )
35
35
const routeOriginal = useFSRoute ( )
36
- const [ route ] = routeOriginal . split ( '#' )
36
+ const [ originRoute ] = routeOriginal . split ( '#' )
37
+ const route = decodeURIComponent ( originRoute )
37
38
38
39
const {
39
40
wrapperRef,
@@ -50,8 +51,10 @@ export const SortableItem = forwardRef<HTMLDivElement, SortableItemProps>((props
50
51
} = props
51
52
52
53
const isAction = [ 'newPage' , 'newFolder' , 'newSeparator' ] . includes ( item . type ) || isEdit
54
+
53
55
const active =
54
56
! isDragging && ! isAction && ! isGhost && [ route , `${ route } /` ] . includes ( item . route + '/' )
57
+
55
58
// const isLink = 'withIndexPage' in item && item.withIndexPage
56
59
57
60
const isShowMenu = showMenuId === item . id
You can’t perform that action at this time.
0 commit comments