From 68609f55ead5919337dff737cf7e15a0c396e27d Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 2 Jan 2026 03:07:36 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20entityType=20handling=20in?= =?UTF-8?q?=20attribute-hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add entityType to AttributeDefinitionFilters interface - Fix queryKey type casting to use proper entityType 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- @packages/@hooks/attribute-hooks/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/@packages/@hooks/attribute-hooks/src/index.ts b/@packages/@hooks/attribute-hooks/src/index.ts index 71fe52f94..4ba646326 100644 --- a/@packages/@hooks/attribute-hooks/src/index.ts +++ b/@packages/@hooks/attribute-hooks/src/index.ts @@ -308,6 +308,7 @@ export function useMetaCategorizedAttributes( } export interface AttributeDefinitionFilters { + entityType?: EntityType; isActive?: boolean; metaCategory?: MetaCategory; grouping?: string; @@ -332,7 +333,7 @@ export function useAttributeDefinitions( : filters; const query = useQuery({ - queryKey: attributeKeys.list({ ...normalizedFilters, entityType: entityType as unknown as undefined }), + queryKey: attributeKeys.list({ ...normalizedFilters, entityType }), queryFn: () => fetchAttributeDefinitions(entityType, normalizedFilters), });