vulrability issues fixed
This commit is contained in:
parent
0011dc16f6
commit
61ddf150e1
@ -5,6 +5,19 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>IIP Survey Platform</title>
|
||||
<style>
|
||||
html {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
if (self === top) {
|
||||
document.documentElement.style.display = 'block';
|
||||
} else {
|
||||
top.location = self.location;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@ -1417,11 +1417,8 @@ const CompanyProfile = () => {
|
||||
// Enhanced product loading with better error handling
|
||||
const loadProducts = async () => {
|
||||
try {
|
||||
console.log('Fetching products...');
|
||||
setIsLoadingProducts(true);
|
||||
const response = await fetchProducts();
|
||||
console.log('Products API Response:', response);
|
||||
|
||||
const response = await fetchProducts();
|
||||
let productsData = [];
|
||||
|
||||
if (Array.isArray(response)) {
|
||||
@ -1430,7 +1427,6 @@ const CompanyProfile = () => {
|
||||
productsData = Array.isArray(response.data) ? response.data : response.data.products || [];
|
||||
}
|
||||
|
||||
console.log('Processed products data:', productsData);
|
||||
|
||||
// Enhanced product formatting to handle various API response structures
|
||||
const formattedProducts = productsData.map(p => ({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user