Skip to content

Commit

Permalink
fix: collections active state (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin authored Dec 20, 2024
1 parent be625b2 commit 6dfb9c8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export const useIsActive = (
case ResourceType.IndexPage:
return siteProps.resourceId === currentResourceId
case ResourceType.Folder:
case ResourceType.Collection:
return siteProps.folderId === currentResourceId
case ResourceType.Collection:
return siteProps.resourceId === currentResourceId
case ResourceType.CollectionLink:
return siteProps.linkId === currentResourceId
case ResourceType.FolderMeta:
Expand Down

0 comments on commit 6dfb9c8

Please sign in to comment.