From 7da71001ffb8fb165c506dd33ee01229f6737a8f Mon Sep 17 00:00:00 2001 From: Dasuni Geeganage Date: Wed, 19 Jun 2024 10:46:36 +0530 Subject: [PATCH] Improve usememo function --- .../components/administrators/pages/administrators.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/admin.extensions.v1/components/administrators/pages/administrators.tsx b/features/admin.extensions.v1/components/administrators/pages/administrators.tsx index 4d7e23ce359..ba81dea4f72 100644 --- a/features/admin.extensions.v1/components/administrators/pages/administrators.tsx +++ b/features/admin.extensions.v1/components/administrators/pages/administrators.tsx @@ -264,9 +264,9 @@ const CollaboratorsPage: FunctionComponent = ( const { data: consoleApplicationFilter } = useApplicationList(null, null, null, "name eq Console"); - const consoleId: string = useMemo(() => { - return consoleApplicationFilter?.applications[0]?.id; - }, [ consoleApplicationFilter ]); + const consoleId: string = useMemo(() => ( + consoleApplicationFilter?.applications[0]?.id + ), [ consoleApplicationFilter ]); const { data: serverConfigs,