diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/AllSensitiveData/AllSensitiveData.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/AllSensitiveData/AllSensitiveData.jsx index 770f6f62cd..c9ced26c47 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/AllSensitiveData/AllSensitiveData.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/AllSensitiveData/AllSensitiveData.jsx @@ -135,7 +135,7 @@ const convertToDataTypesData = (type, collectionsMap, countMap, subtypeToApiColl function AllSensitiveData() { - const [data, setData] = useState({"enabled":[]}) + const [data, setData] = useState({'all': [], "enabled":[], 'disabled': []}) const [mapData, setMapData] = useState({}) const [prompts, setPrompts] = useState([]) const [isGptScreenActive, setIsGptScreenActive] = useState(false) diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiCollections.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiCollections.jsx index 6959b0d829..69b64a5a79 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiCollections.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiCollections.jsx @@ -192,7 +192,7 @@ const convertToNewData = (collectionsArr, sensitiveInfoMap, severityInfoMap, cov function ApiCollections() { const navigate = useNavigate(); - const [data, setData] = useState({'hostname':[]}) + const [data, setData] = useState({'all': [], 'hostname':[], 'groups': [], 'custom': [], 'deactivated': []}) const [active, setActive] = useState(false); const [loading, setLoading] = useState(false) diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiEndpoints.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiEndpoints.jsx index a9d6135066..0668b426cc 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiEndpoints.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiEndpoints.jsx @@ -163,7 +163,7 @@ function ApiEndpoints(props) { const [showEmptyScreen, setShowEmptyScreen] = useState(false) const [runTests, setRunTests ] = useState(false) - const [endpointData, setEndpointData] = useState({"all":[]}) + const [endpointData, setEndpointData] = useState({"all":[], 'sensitive': [], 'new': [], 'high_risk': [], 'no_auth': [], 'shadow': []}) const [selectedTab, setSelectedTab] = useState("all") const [selected, setSelected] = useState(0) const [selectedResourcesForPrimaryAction, setSelectedResourcesForPrimaryAction] = useState([])