Skip to content

Commit

Permalink
Merge pull request #1726 from akto-api-security/fix/adding_default_va…
Browse files Browse the repository at this point in the history
…lue_for_tables

fix: adding initial value for github simple table data
  • Loading branch information
avneesh-akto authored Nov 14, 2024
2 parents 9c77140 + 7311672 commit d566d81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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([])
Expand Down

0 comments on commit d566d81

Please sign in to comment.