refactor: remove unnecessary console logs in asset management and thumbnail fetching
This commit is contained in:
@@ -30,7 +30,7 @@ const AssetManagement = () => {
|
||||
|
||||
// Use Promise.all to handle all async operations
|
||||
await Promise.all(allAssets.map(async (asset: any) => {
|
||||
console.log('asset: ', asset);
|
||||
|
||||
if (asset.eventData.type === "Storage" || asset.eventData.type === "Human") return;
|
||||
|
||||
const assetImage = await getAsset(asset.assetId);
|
||||
@@ -130,7 +130,7 @@ const AssetManagement = () => {
|
||||
{expandedAssetId === asset.id ?
|
||||
<>
|
||||
<div className="drop-icon" onClick={() => setExpandedAssetId(null)}>▾</div>
|
||||
<img className='asset-image' src={asset.image} alt="" onClick={() => { console.log(asset.image) }} />
|
||||
<img className='asset-image' src={asset.image} alt="" />
|
||||
</>
|
||||
:
|
||||
<div className="icon"><ForkLiftIcon /></div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
let url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_MARKETPLACE_URL}`;
|
||||
|
||||
export const getAssetThumbnail = async (assetId: String) => {
|
||||
console.log('assetId: ', assetId);
|
||||
|
||||
try {
|
||||
const response = await fetch(
|
||||
`${url_Backend_dwinzo}/api/v2/getAssetThumbnail/${assetId}`,
|
||||
@@ -24,10 +24,10 @@ export const getAssetThumbnail = async (assetId: String) => {
|
||||
throw new Error("Failed to fetch assets");
|
||||
}
|
||||
|
||||
// console.log('response: ', response);
|
||||
//
|
||||
return await response.json();
|
||||
} catch (error: any) {
|
||||
echo.error("Failed to get asset image");
|
||||
console.log(error.message);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user