From 07ee08f58dd96401fb4c0ca34f35c6eb47c2586f Mon Sep 17 00:00:00 2001 From: Sasial <44125644+sasial-dev@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:43:23 +1000 Subject: [PATCH] chore: fix CI --- .../ui/src/components/suggestions/suggestions.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/ui/src/components/suggestions/suggestions.tsx b/packages/ui/src/components/suggestions/suggestions.tsx index 412ad7a8..3e59a2d8 100644 --- a/packages/ui/src/components/suggestions/suggestions.tsx +++ b/packages/ui/src/components/suggestions/suggestions.tsx @@ -41,14 +41,11 @@ export function Suggestions() { return terminalText.parts[terminalText.index]; }, [terminalText]); - const textBoundsParams = useMemo( - () => { - const instance = new Instance("GetTextBoundsParams"); - instance.RichText = true; - return instance - }, - [], - ); + const textBoundsParams = useMemo(() => { + const params = new Instance("GetTextBoundsParams"); + params.RichText = true; + return params; + }, []); // Suggestions const currentSuggestion = useSelector(selectSuggestion);