|
|
@ -123,7 +123,6 @@ const MasterCompany = ({ params }) => { |
|
|
|
setTotalPage(result.data.totalRecord); |
|
|
|
setTotalPage(result.data.totalRecord); |
|
|
|
const lastCompanyId = sourceData[sourceData.length - 1].id; |
|
|
|
const lastCompanyId = sourceData[sourceData.length - 1].id; |
|
|
|
setLastCompanyId(lastCompanyId); |
|
|
|
setLastCompanyId(lastCompanyId); |
|
|
|
console.log('lastID',lastCompanyId) |
|
|
|
|
|
|
|
setLoading(false) |
|
|
|
setLoading(false) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setLoading(false) |
|
|
|
setLoading(false) |
|
|
|