diff --git a/frontend/control-center/src/pages/LLMConsumers/index.tsx b/frontend/control-center/src/pages/LLMConsumers/index.tsx index 368267ee9..9d830c3d1 100644 --- a/frontend/control-center/src/pages/LLMConsumers/index.tsx +++ b/frontend/control-center/src/pages/LLMConsumers/index.tsx @@ -35,8 +35,6 @@ const LLMConsumers = (props: LLMConsumersProps) => { const {topics, getSchemas} = props; const [consumers, setConsumers] = useState([]); - const [isLoading, setIsLoading] = useState(false); - const [errorOccurred, setErrorOccurred] = useState(false); const [notification, setNotification] = useState(null); const [dataFetched, setDataFetched] = useState(false); const [showSettingsModal, setShowSettingsModal] = useState(false); @@ -57,7 +55,6 @@ const LLMConsumers = (props: LLMConsumersProps) => { .then((response: any) => { setConsumers(response); setDataFetched(true); - setIsLoading(false); }) .catch(() => { handleNotification(true); @@ -200,6 +197,7 @@ const LLMConsumers = (props: LLMConsumersProps) => { {notification?.show && ( ; @@ -24,8 +20,6 @@ const connector = connect(null, mapDispatchToProps); const LLMs = (props: LLMsProps) => { const [llms, setLlms] = useState([]); const [embeddings, setEmbeddings] = useState(0); - const [isLoading, setIsLoading] = useState(false); - const [errorOccurred, setErrorOccurred] = useState(false); const [notification, setNotification] = useState(null); const [dataFetched, setDataFetched] = useState(false); const {t} = useTranslation(); @@ -35,12 +29,10 @@ const LLMs = (props: LLMsProps) => { }, []); useEffect(() => { - setIsLoading(true); HttpClientInstance.getLLMInfo() .then((response: any) => { setLlms(response); setDataFetched(true); - setIsLoading(false); }) .catch(() => { handleNotification(true); @@ -83,6 +75,7 @@ const LLMs = (props: LLMsProps) => {
Embeddings: {embeddings}
{notification?.show && ( { }; const recalculateContainerHeight = (code: string) => { - let basicHeight = 220; + const basicHeight = 220; if (wrapperSection && wrapperSection.current) { wrapperSection.current.style.height = `${calculateHeightOfCodeString(code) + basicHeight}px`; } else { diff --git a/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/SchemaSection/index.tsx b/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/SchemaSection/index.tsx index aab370f65..fad1bef22 100644 --- a/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/SchemaSection/index.tsx +++ b/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/SchemaSection/index.tsx @@ -65,7 +65,7 @@ const SchemaSection = (props: SchemaSectionProps) => { }; const recalculateContainerHeight = (code: string) => { - let basicHeight = 220; + const basicHeight = 220; if (wrapperSection && wrapperSection.current) { wrapperSection.current.style.height = `${calculateHeightOfCodeString(code) + basicHeight}px`; } else {