From 3cde1a12ce7156a6205b3f27f2df1aac62f6b4e0 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Tue, 30 Jul 2024 11:55:36 -0700 Subject: [PATCH] fix: remove unnecessary function call (#611) --- packages/react/src/context/providers/ContentPartProvider.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react/src/context/providers/ContentPartProvider.tsx b/packages/react/src/context/providers/ContentPartProvider.tsx index e6fd7a90b..511ddac4b 100644 --- a/packages/react/src/context/providers/ContentPartProvider.tsx +++ b/packages/react/src/context/providers/ContentPartProvider.tsx @@ -88,8 +88,6 @@ const useContentPartContext = (partIndex: number) => { () => getContentPartState(useMessage.getState(), undefined, partIndex)!, ); - getContentPartState(useMessage.getState(), useContentPart, partIndex); - return { useContentPart }; });