feat: add onGetData callback to TableList and enhance DetailSparepart with improved image handling

This commit is contained in:
2025-11-27 13:30:45 +07:00
parent 572042ab53
commit ed4570e8dd
4 changed files with 334 additions and 70 deletions

View File

@@ -268,6 +268,12 @@ const ListSparepart = memo(function ListSparepart(props) {
triger={trigerFilter}
cardComponent={SparepartCardList} // Pass the custom component here
onStockUpdate={doFilter}
onGetData={(data) => {
if(data && data.length > 0) {
console.log('Sample sparepart data from API:', data[0]);
console.log('Available fields:', Object.keys(data[0] || {}));
}
}} // Log untuk debugging field-field yang tersedia
/>
</Col>
</Row>