File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export const Public = (): JSX.Element => {
114114 </ Grid >
115115 < Box display = "flex" justifyContent = "center" sx = { { m : 1 } } >
116116 < Pagination
117- count = { Math . ceil ( pageMetadata . total_count / limit ) }
117+ count = { Math . ceil ( ( pageMetadata ? .total_count ?? 0 ) / limit ) }
118118 page = { currPageNum }
119119 onChange = { handlePageChange }
120120 shape = "rounded"
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ export const PublicDataset = (): JSX.Element => {
281281 />
282282 < Box display = "flex" justifyContent = "center" sx = { { m : 1 } } >
283283 < Pagination
284- count = { Math . ceil ( pageMetadata . total_count / limit ) }
284+ count = { Math . ceil ( ( pageMetadata . total_count ?? 0 ) / limit ) }
285285 page = { currPageNum }
286286 onChange = { handlePageChange }
287287 shape = "rounded"
You can’t perform that action at this time.
0 commit comments