Skip to content

Commit

Permalink
Improve usememo function
Browse files Browse the repository at this point in the history
  • Loading branch information
dasuni-30 committed Jun 19, 2024
1 parent 5fb9e9e commit 7da7100
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ const CollaboratorsPage: FunctionComponent<CollaboratorsPageInterface> = (

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,
Expand Down

0 comments on commit 7da7100

Please sign in to comment.