refactor: remove unnecessary console logs in asset management and thumbnail fetching

This commit is contained in:
2025-08-25 18:16:02 +05:30
parent 358ce22767
commit 6026c3b82b
2 changed files with 5 additions and 5 deletions

View File

@@ -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>