i an getting an error in my react build online, even though it seems to be working fine locally.
react-dom.production.min.js:189 TypeError: Cannot read properties of undefined (reading 'length') at VK (MyChallengeTab.js:59:23)
The code below is here the error is coming from, anyone with a fix pls? Pls provide me with an edit to correct for this?
<div className="m-4">
<Pagination
total={data.length}
defaultCurrent={page}
defaultPageSize={perPage}
showTotal={(total) => `Total ${total} items`}
onChange={handleMyChange}
/>
</div>
data
is null. Where's that coming from?