From 6dfb9c8640b193c8ff7db8498a74356701d3a494 Mon Sep 17 00:00:00 2001 From: seaerchin <44049504+seaerchin@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:53:50 +0800 Subject: [PATCH] fix: collections active state (#941) --- .../dashboard/components/DirectorySidebar/useIsActive.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/studio/src/features/dashboard/components/DirectorySidebar/useIsActive.ts b/apps/studio/src/features/dashboard/components/DirectorySidebar/useIsActive.ts index e57201db03..7c64446808 100644 --- a/apps/studio/src/features/dashboard/components/DirectorySidebar/useIsActive.ts +++ b/apps/studio/src/features/dashboard/components/DirectorySidebar/useIsActive.ts @@ -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: