diff --git a/frontend/webapp/containers/main/sources/choose.sources/index.tsx b/frontend/webapp/containers/main/sources/choose.sources/index.tsx index a9536b96c..095117d16 100644 --- a/frontend/webapp/containers/main/sources/choose.sources/index.tsx +++ b/frontend/webapp/containers/main/sources/choose.sources/index.tsx @@ -15,7 +15,7 @@ export function SelectSourcesContainer() { return (
router.back()} /> diff --git a/frontend/webapp/hooks/useSectionData.tsx b/frontend/webapp/hooks/useSectionData.tsx index 7e425a035..cfea9b52a 100644 --- a/frontend/webapp/hooks/useSectionData.tsx +++ b/frontend/webapp/hooks/useSectionData.tsx @@ -1,4 +1,4 @@ -import { useMemo, useState } from "react"; +import { useMemo, useState } from 'react'; export function useSectionData(initialData) { const [sectionData, setSectionData] = useState(initialData); @@ -7,9 +7,12 @@ export function useSectionData(initialData) { let total = 0; for (const key in sectionData) { const apps = sectionData[key]?.objects; - const counter = apps?.filter((item) => item.selected)?.length; + const counter = apps?.filter( + (item) => item.selected && !item.app_instrumentation_labeled + )?.length; total += counter; } + return total; }, [JSON.stringify(sectionData)]); diff --git a/frontend/webapp/utils/constants/string.tsx b/frontend/webapp/utils/constants/string.tsx index 2daf03c6e..87481b578 100644 --- a/frontend/webapp/utils/constants/string.tsx +++ b/frontend/webapp/utils/constants/string.tsx @@ -75,7 +75,7 @@ export const OVERVIEW = { ADD_NEW_ACTION: 'Add New Action', EMPTY_DESTINATION: 'No destinations found', EMPTY_ACTION: 'No actions found', - EMPTY_SOURCE: 'No sources found', + EMPTY_SOURCE: 'No sources found in this namespace', DESTINATION_UPDATE_SUCCESS: 'Destination updated successfully', DESTINATION_CREATED_SUCCESS: 'Destination created successfully', DESTINATION_DELETED_SUCCESS: 'Destination deleted successfully',