소스 검색

Review fixes

Roman Zabaluev 2 년 전
부모
커밋
f1d67f721f
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      kafka-ui-react-app/src/components/ConsumerGroups/Details/Details.tsx

+ 1 - 3
kafka-ui-react-app/src/components/ConsumerGroups/Details/Details.tsx

@@ -54,9 +54,7 @@ const Details: React.FC = () => {
     ? filteredPartitionsByTopic
     : Object.keys(partitionsByTopic);
 
-  const hasAssignedTopics = React.useMemo(() => {
-    return consumerGroup?.data?.topics !== 0;
-  }, [consumerGroup.data]);
+  const hasAssignedTopics = consumerGroup?.data?.topics !== 0;
 
   return (
     <div>